RETURN_CLASSIFIER
- the matching BaseRedSynchronizer.ReturnClassifier
middleware to be returnedprotected abstract static class BaseRedSynchronizer.FutureTransformer<RETURN_CLASSIFIER extends BaseRedSynchronizer.ReturnClassifier> extends Object
succeed()
, finish()
or fail, which expect all preconditions to
respectively succeed, finish either by success or failure, or to fail.
Preconditions are receive as either BaseRedSynchronizer.Result
or BaseRedSynchronizer.Marker
, and when and
transformation method is called, a BaseRedSynchronizer.ReturnClassifier
middleware instance is returned.Modifier and Type | Class and Description |
---|---|
protected static class |
BaseRedSynchronizer.FutureTransformer.Locked<RETURN_CLASSIFIER extends BaseRedSynchronizer.ReturnClassifier>
A
BaseRedSynchronizer.FutureTransformer which leaves the original RETURN_CLASSIFIER parameter
in case BaseRedSynchronizer.FutureTransformer.Locked.fail() has been called. |
protected static class |
BaseRedSynchronizer.FutureTransformer.Unlocked<RETURN_CLASSIFIER extends BaseRedSynchronizer.ReturnClassifier>
A
BaseRedSynchronizer.FutureTransformer which overrides the RETURN_CLASSIFIER parameter
to BaseRedSynchronizer.ReturnClassifier.Classifier0 in case BaseRedSynchronizer.FutureTransformer.Unlocked.fail() has been called. |
Modifier and Type | Method and Description |
---|---|
protected abstract RETURN_CLASSIFIER |
classifier(RedFuture[] preconditions) |
RETURN_CLASSIFIER |
finish()
Expect the later results or markers to finish, either by success or failure,
and return a
BaseRedSynchronizer.ReturnClassifier to choose which kind of value wrapper to produce |
RETURN_CLASSIFIER |
succeed()
Expect the later results or markers to succeed, and return a
BaseRedSynchronizer.ReturnClassifier
to choose which kind of value wrapper to produce |
public RETURN_CLASSIFIER succeed()
BaseRedSynchronizer.ReturnClassifier
to choose which kind of value wrapper to produceBaseRedSynchronizer.ReturnClassifier
to choose which kind of value wrapper to producepublic RETURN_CLASSIFIER finish()
BaseRedSynchronizer.ReturnClassifier
to choose which kind of value wrapper to produceBaseRedSynchronizer.ReturnClassifier
to choose which kind of value wrapper to produceprotected abstract RETURN_CLASSIFIER classifier(RedFuture[] preconditions)
preconditions
- all futures to be used - merged array of
both _previousLayer and transformed _currentLayerBaseRedSynchronizer.ReturnClassifier
to choose which kind of value wrapper to produceCopyright © 2017. All rights reserved.