HelixMessageScope scope =
new HelixMessageScope.Builder().cluster(clusterName).resource(resourceName)
.partition(partitionName).state(state).sourceInstance(srcInstance).build();
// Get callback
HelixIPCCallback callback = callbacks.get(messageType);
if (callback == null) {
throw new IllegalStateException("No callback registered for message type " + messageType);
}
// Handle callback
callback.onMessage(scope, messageId, byteBuf);
// Stats
statRxMsg.mark();
statRxBytes.mark(messageLength);
} finally {