JavaScript is disabled on your browser.
public interface CallWrapper
Provides methods for wrapping other method calls.
This can be useful to ensure preparations have been done for a larger set of various method
calls, for example.
Method Summary
All Methods Instance Methods Abstract Methods
void
Calls a mehtod that has no return value.
<R> R
Calls a method that has a return value.
Method Details
call
Calls a method that has a return value.
Type Parameters:
R
- The return value's type.
Parameters:
callable
- The method wrapped in a Callable
instance.
Returns:
The result of the method's call.
Throws:
Exception
- If there was an exception calling method.
call
Calls a mehtod that has no return value.
Parameters:
runnable
- The method wrapped in a Runnable
instance.
Throws:
Exception
- If there was an exception calling method.