Search in sources :

Example 1 with RetryableIOException

use of com.hazelcast.spi.exception.RetryableIOException in project hazelcast by hazelcast.

the class Invocation method doInvokeRemote.

private void doInvokeRemote() {
    assert connectionManager != null : "Endpoint manager was null";
    ServerConnection connection = connectionManager.getOrConnect(targetAddress, op.getPartitionId());
    this.connection = connection;
    boolean write;
    if (connection != null) {
        write = context.outboundOperationHandler.send(op, connection);
    } else {
        write = context.outboundOperationHandler.send(op, targetAddress);
    }
    if (!write) {
        notifyError(new RetryableIOException(getPacketNotSentMessage(connection)));
    }
}
Also used : ServerConnection(com.hazelcast.internal.server.ServerConnection) RetryableIOException(com.hazelcast.spi.exception.RetryableIOException)

Aggregations

ServerConnection (com.hazelcast.internal.server.ServerConnection)1 RetryableIOException (com.hazelcast.spi.exception.RetryableIOException)1