UniqueASyncBroadcastMessage

This class is used as a base object to create a Netty message that will be consumed only once per JVM.

Netty bus sends a broadcast message to all the registered nodes. Atoti registers one Netty node per cube. So if a message needs to be processed only once per JVM this could cause problematic duplicates. This object will ensure that the message is only processed once. This object derives from ASyncBroadcastMessage and can be used on the same context.

Method Usage
compute DO NOT USE. This is the base method of ASyncBroadcastMessage.
computeOnce Method that must be overridden to process the message.
canBeProcessed Method that must be defined to send true when the node has the capability to process the message (for example, when the database instance is known).