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);
}
}
}
Aggregations