use of org.jowidgets.invocation.common.impl.FinishedMessage in project jo-client-platform by jo-source.
the class InvocationCallbackMessageReceiver method onMessage.
@Override
public void onMessage(final Object message, final IMessageChannel replyChannel) {
if (message instanceof AcknowledgeMessage) {
final AcknowledgeMessage acknowledgeMessage = (AcknowledgeMessage) message;
invocationClient.registerAcknowledge(acknowledgeMessage.getInvocationId(), replyChannel);
} else if (message instanceof FinishedMessage) {
invocationClientServiceRegistry.onFinished((FinishedMessage) message);
} else if (message instanceof ExceptionMessage) {
invocationClientServiceRegistry.onException((ExceptionMessage) message);
} else if (message instanceof InterimResponseMessage) {
invocationClientServiceRegistry.onInterimResponse((InterimResponseMessage) message);
} else if (message instanceof InterimRequestMessage) {
final InterimRequestMessage interimRequestMessage = (InterimRequestMessage) message;
invocationClient.registerInterimRequest(interimRequestMessage.getInvocationId(), interimRequestMessage.getRequestId(), replyChannel);
invocationClientServiceRegistry.onInterimRequest((InterimRequestMessage) message);
}
}
Aggregations