Package org.jboss.ejb.server
Interface CancelHandle
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A handle which may be used to request the cancellation an invocation request. A cancel request may or may not be
honored by the server implementation.
- Author:
- David M. Lloyd
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CancelHandleA null cancel handle which does nothing. -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel(boolean aggressiveCancelRequested) Attempt to cancel the in-progress invocation.
-
Field Details
-
NULL
A null cancel handle which does nothing.
-
-
Method Details
-
cancel
void cancel(boolean aggressiveCancelRequested) Attempt to cancel the in-progress invocation. If the invocation is past the point where cancellation is possible, the method has no effect. The invocation may not support cancellation, in which case the method has no effect.- Parameters:
aggressiveCancelRequested-falseto only cancel if the method invocation has not yet begun,trueto attempt to cancel even if the method is running
-