public void processMessage(ChannelAssociation channelAssociation, MessageInputStream messageInputStream) throws IOException {
final DataInputStream input = new DataInputStream(messageInputStream);
// read the id of the invocation which needs to be cancelled
final short invocationToCancel = input.readShort();
// get the cancellation flag (if any) for the invocation id
final CancellationFlag cancellationFlag = this.remoteAsyncInvocationCancelStatus.getCancelStatus(invocationToCancel);
if (cancellationFlag == null) {
return;
}
// mark it as cancelled
cancellationFlag.set(true);
logger.debug("Invocation with id " + invocationToCancel + " has been marked as cancelled, as requested");
}