INPUT - type of the input of the executionOUTPUT - type of the output of the executionpublic abstract class RedSynchronizer<INPUT,OUTPUT> extends BaseRedSynchronizer
BaseRedSynchronizer.Command, BaseRedSynchronizer.Function, BaseRedSynchronizer.FutureTransformer<RETURN_CLASSIFIER extends BaseRedSynchronizer.ReturnClassifier>, BaseRedSynchronizer.Marker, BaseRedSynchronizer.PendingMarker, BaseRedSynchronizer.Result<T>, BaseRedSynchronizer.Results, BaseRedSynchronizer.ReturnClassifier<COMMAND extends BaseRedSynchronizer.Command,TRANSFORMER extends BaseRedSynchronizer.FutureTransformer.Locked>, BaseRedSynchronizer.Runner<FUNCTION extends BaseRedSynchronizer.Function,WRAPPER,R>| Constructor and Description |
|---|
RedSynchronizer() |
| Modifier and Type | Method and Description |
|---|---|
RedFutureOf<OUTPUT> |
execute(INPUT input)
Receive an input and executes it, returns a
RedFutureOf
of the execution output. |
protected abstract BaseRedSynchronizer.Result<OUTPUT> |
handle(INPUT input)
Implements the execution flow of the Synchronizer
|
public RedFutureOf<OUTPUT> execute(INPUT input)
RedFutureOf
of the execution output.input - input to executeRedFutureOf of the execution outputprotected abstract BaseRedSynchronizer.Result<OUTPUT> handle(INPUT input) throws Throwable
input - input to handleThrowable - to enable throwable catchingCopyright © 2017. All rights reserved.