Interface LogicalSlot.Payload
-
- All Known Implementing Classes:
Execution
- Enclosing interface:
- LogicalSlot
public static interface LogicalSlot.PayloadPayload for a logical slot.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidfail(Throwable cause)Fail the payload with the given cause.CompletableFuture<?>getTerminalStateFuture()Gets the terminal state future which is completed once the payload has reached a terminal state.
-
-
-
Method Detail
-
fail
void fail(Throwable cause)
Fail the payload with the given cause.- Parameters:
cause- of the failure
-
getTerminalStateFuture
CompletableFuture<?> getTerminalStateFuture()
Gets the terminal state future which is completed once the payload has reached a terminal state.- Returns:
- Terminal state future
-
-