public interface CanCancelOperations
Modifier and Type | Method and Description |
---|---|
boolean |
cancelOperation(Address caller,
long callId)
Notifies this service that an operation was requested to be cancelled.
|
boolean cancelOperation(Address caller, long callId)
false
and the caller will proceed
to ask other services about it.
Returning true
consumes the cancellation signal only in this round of processing an
Operation Control packet; the same signal will be re-sent with the next packet, until the operation is
removed from the Invocation Registry. Therefore it is safe to return true
whenever the service
recognizes the call ID as one it's responsible for, whether or not it actually manages
to cancel the operation now.
caller
- address of the member which sent the operationcallId
- call ID of the operationtrue
if the supplied call ID is known to this service; false
otherwise.Copyright © 2018 Hazelcast, Inc.. All rights reserved.