FUNCTION - type of the function to expectWRAPPER - type of the object to be returned from the function
the wrapper may be R, Future of R,
ListenableFuture of R or RedFutureOf of R.R - the type of the result of the executionprotected abstract static class BaseRedSynchronizer.Runner<FUNCTION extends BaseRedSynchronizer.Function,WRAPPER,R> extends Object
| Modifier and Type | Method and Description |
|---|---|
BaseRedSynchronizer.Result<R> |
byExecuting(FUNCTION f)
Receive a function to execute and invokes it
|
protected abstract WRAPPER |
call(FUNCTION f)
Receive the function to call and calls it.
|
public BaseRedSynchronizer.Result<R> byExecuting(FUNCTION f)
f - function to executeprotected abstract WRAPPER call(FUNCTION f) throws Throwable
f - function to callThrowable - to enable throwable catchingCopyright © 2017. All rights reserved.