RETURN_CLASSIFIER
- the matching BaseRedSynchronizer.ReturnClassifier
to be returnedprotected abstract static class BaseRedSynchronizer.FutureTransformer.Locked<RETURN_CLASSIFIER extends BaseRedSynchronizer.ReturnClassifier> extends BaseRedSynchronizer.FutureTransformer<RETURN_CLASSIFIER>
BaseRedSynchronizer.FutureTransformer
which leaves the original RETURN_CLASSIFIER parameter
in case fail()
has been called.
This is used for example in a case where one performs:
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.
This is, as opposed to:
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.BaseRedSynchronizer.FutureTransformer.Locked<RETURN_CLASSIFIER extends BaseRedSynchronizer.ReturnClassifier>, BaseRedSynchronizer.FutureTransformer.Unlocked<RETURN_CLASSIFIER extends BaseRedSynchronizer.ReturnClassifier>
Modifier and Type | Method and Description |
---|---|
RETURN_CLASSIFIER |
fail()
Expect the later results or markers to fail, and return a
BaseRedSynchronizer.ReturnClassifier to choose which kind of value wrapper to produce |
classifier, finish, succeed
public RETURN_CLASSIFIER fail()
BaseRedSynchronizer.ReturnClassifier
to choose which kind of value wrapper to produceBaseRedSynchronizer.ReturnClassifier
to choose which kind of value wrapper to produceCopyright © 2017. All rights reserved.