Search in sources :

Example 1 with CallAsync

use of org.apache.flink.runtime.rpc.messages.CallAsync in project flink by apache.

the class AkkaRpcActor method handleRpcMessage.

protected void handleRpcMessage(Object message) {
    if (message instanceof RunAsync) {
        handleRunAsync((RunAsync) message);
    } else if (message instanceof CallAsync) {
        handleCallAsync((CallAsync) message);
    } else if (message instanceof RpcInvocation) {
        handleRpcInvocation((RpcInvocation) message);
    } else {
        log.warn("Received message of unknown type {} with value {}. Dropping this message!", message.getClass().getName(), message);
        sendErrorIfSender(new AkkaUnknownMessageException("Received unknown message " + message + " of type " + message.getClass().getSimpleName() + '.'));
    }
}
Also used : LocalRpcInvocation(org.apache.flink.runtime.rpc.messages.LocalRpcInvocation) RpcInvocation(org.apache.flink.runtime.rpc.messages.RpcInvocation) AkkaUnknownMessageException(org.apache.flink.runtime.rpc.akka.exceptions.AkkaUnknownMessageException) RunAsync(org.apache.flink.runtime.rpc.messages.RunAsync) CallAsync(org.apache.flink.runtime.rpc.messages.CallAsync)

Aggregations

AkkaUnknownMessageException (org.apache.flink.runtime.rpc.akka.exceptions.AkkaUnknownMessageException)1 CallAsync (org.apache.flink.runtime.rpc.messages.CallAsync)1 LocalRpcInvocation (org.apache.flink.runtime.rpc.messages.LocalRpcInvocation)1 RpcInvocation (org.apache.flink.runtime.rpc.messages.RpcInvocation)1 RunAsync (org.apache.flink.runtime.rpc.messages.RunAsync)1