Class MessagingCacheSynchronizer

  • All Implemented Interfaces:
    MessageListener, MorphiumStorageListener<Object>

    public class MessagingCacheSynchronizer
    extends AbstractCacheSynchronizer<MessagingCacheSyncListener>
    implements MessageListener, MorphiumStorageListener<Object>
    User: Stephan Bösebeck Date: 27.05.12 Time: 14:14

    Connects to the Messaging system and to morphium. As soon as there is a message coming with name "cacheSync", this is responsible for clearing the local cache for this entity. Messaging used:

    • Msg.name == Always cacheSync
    • Msg.type == Always multi - more than one node may listen to those messages
    • Msg.msg == The messag is the Reason for clearing (remove, store, user interaction...)
    • Msg.value == String, name of the class whose cache should be cleared
    • Msg.additional == always null
    • Msg.ttl == 30 sec - shoule be enought time for the message to be processed by all nodes