RETURN_CLASSIFIER
- the matching BaseRedSynchronizer.ReturnClassifier
to be returnedprotected abstract static class BaseRedSynchronizer.FutureTransformer.Unlocked<RETURN_CLASSIFIER extends BaseRedSynchronizer.ReturnClassifier> extends BaseRedSynchronizer.FutureTransformer<RETURN_CLASSIFIER>
BaseRedSynchronizer.FutureTransformer
which overrides the RETURN_CLASSIFIER parameter
to BaseRedSynchronizer.ReturnClassifier.Classifier0
in case fail()
has been called.
This is used for example in a case where one performs:
ifResult(someResult1, someResult2).fail()
we want to propagate this call to a runner that does not supply parameters, since
we know that all results has failed.
This is, as opposed to:
ifResult(someResult1, someResult2).succeed().andMarker(someMarker).fail()
in this case, the call to fail should not alter the BaseRedSynchronizer.ReturnClassifier
since we do want to receive someResult1, someResult2 results on runner function.BaseRedSynchronizer.FutureTransformer.Locked<RETURN_CLASSIFIER extends BaseRedSynchronizer.ReturnClassifier>, BaseRedSynchronizer.FutureTransformer.Unlocked<RETURN_CLASSIFIER extends BaseRedSynchronizer.ReturnClassifier>
Modifier and Type | Method and Description |
---|---|
BaseRedSynchronizer.ReturnClassifier.Classifier0 |
fail()
Expect the later results or markers to fail, and return a
BaseRedSynchronizer.ReturnClassifier.Classifier0 to choose which kind of value wrapper to produce |
classifier, finish, succeed
public BaseRedSynchronizer.ReturnClassifier.Classifier0 fail()
BaseRedSynchronizer.ReturnClassifier.Classifier0
to choose which kind of value wrapper to produceBaseRedSynchronizer.ReturnClassifier.Classifier0
to choose which kind of
value wrapper to produceCopyright © 2017. All rights reserved.