Search in sources :

Example 1 with ProtoPingAckMessageGroup

use of com.ms.silverking.cloud.dht.net.ProtoPingAckMessageGroup in project SilverKing by Morgan-Stanley.

the class MessageModule method handlePing.

private void handlePing(MessageGroup message, MessageGroupConnectionProxy connection) {
    if (Log.levelMet(Level.FINE)) {
        Log.finef("%s %s %s %s", message.getMessageType(), connection.getConnectionID(), message.getUUID(), Thread.currentThread().getName());
    }
    if (connection instanceof MessageGroupConnectionProxyRemote) {
        MessageGroupConnectionProxyRemote c;
        ProtoPingAckMessageGroup ack;
        ack = new ProtoPingAckMessageGroup(mgBase.getMyID(), message.getUUID());
        c = (MessageGroupConnectionProxyRemote) connection;
        try {
            c.sendAsynchronous(ack.toMessageGroup(), Long.MAX_VALUE);
        } catch (IOException ioe) {
            Log.logErrorWarning(ioe);
        }
    }
}
Also used : IOException(java.io.IOException) ProtoPingAckMessageGroup(com.ms.silverking.cloud.dht.net.ProtoPingAckMessageGroup)

Aggregations

ProtoPingAckMessageGroup (com.ms.silverking.cloud.dht.net.ProtoPingAckMessageGroup)1 IOException (java.io.IOException)1