Interface CasProcessor<E extends Throwable>
- Type Parameters:
E
- Thrown exception.
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A functional interface for a CAS processor.
-
Method Summary
Modifier and TypeMethodDescriptiondefault CasProcessor
<E> andThen
(CasProcessor<E> after) Returns a composedCasProcessor
likeandThen(CasProcessor)
.void
Accepts the processor.
-
Method Details
-
process
Accepts the processor.- Parameters:
aCas
- the CAS to process.- Throws:
E
- Thrown when the processor fails.
-
andThen
Returns a composedCasProcessor
likeandThen(CasProcessor)
.- Parameters:
after
- the operation to perform after this operation- Returns:
- a composed
CasProcessor
likeandThen(CasProcessor)
. - Throws:
NullPointerException
- whenafter
is null
-