public class MessagingCacheSynchronizer extends AbstractCacheSynchronizer<MessagingCacheSyncListener> implements MessageListener, MorphiumStorageListener<Object>
MorphiumStorageListener.UpdateTypes| Modifier and Type | Field and Description |
|---|---|
static String |
CACHE_SYNC_RECORD |
static String |
CACHE_SYNC_TYPE |
listenerForType, listeners, log, morphium| Constructor and Description |
|---|
MessagingCacheSynchronizer(Messaging msg,
Morphium morphium) |
addSyncListener, addSyncListener, firePostClearEvent, firePreClearEvent, removeSyncListener, removeSyncListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmarkAsProcessedBeforeExecpublic static final String CACHE_SYNC_TYPE
public static final String CACHE_SYNC_RECORD
public void sendClearMessage(Class type, String reason, boolean force)
type - - typereason - - reasonpublic void detach()
public boolean isAttached()
public void sendClearAllMessage(String reason)
public void preStore(Morphium m, Object r, boolean isNew) throws MorphiumAccessVetoException
preStore in interface MorphiumStorageListener<Object>MorphiumAccessVetoExceptionpublic void preStore(Morphium m, Map<Object,Boolean> isNew) throws MorphiumAccessVetoException
preStore in interface MorphiumStorageListener<Object>MorphiumAccessVetoExceptionpublic void postStore(Morphium m, Object r, boolean isNew)
postStore in interface MorphiumStorageListener<Object>public void postStore(Morphium m, Map<Object,Boolean> isNew) throws MorphiumAccessVetoException
postStore in interface MorphiumStorageListener<Object>MorphiumAccessVetoExceptionpublic void postDrop(Morphium m, Class cls)
postDrop in interface MorphiumStorageListener<Object>public void preDrop(Morphium m, Class cls)
preDrop in interface MorphiumStorageListener<Object>public void postRemove(Morphium m, Object r)
postRemove in interface MorphiumStorageListener<Object>public void postRemove(Morphium m, List<Object> lst)
postRemove in interface MorphiumStorageListener<Object>public void firePreSendEvent(Class type, Msg m) throws CacheSyncVetoException
CacheSyncVetoExceptionpublic void preRemove(Morphium m, Query<Object> q) throws MorphiumAccessVetoException
preRemove in interface MorphiumStorageListener<Object>MorphiumAccessVetoExceptionpublic void preRemove(Morphium m, Object r) throws MorphiumAccessVetoException
preRemove in interface MorphiumStorageListener<Object>MorphiumAccessVetoExceptionpublic void postLoad(Morphium m, Object o) throws MorphiumAccessVetoException
postLoad in interface MorphiumStorageListener<Object>MorphiumAccessVetoExceptionpublic void postLoad(Morphium m, List<Object> o) throws MorphiumAccessVetoException
postLoad in interface MorphiumStorageListener<Object>MorphiumAccessVetoExceptionpublic void preUpdate(Morphium m, Class<?> cls, Enum updateType) throws MorphiumAccessVetoException
preUpdate in interface MorphiumStorageListener<Object>MorphiumAccessVetoExceptionpublic void postRemove(Morphium m, Query q)
postRemove in interface MorphiumStorageListener<Object>public void postUpdate(Morphium m, Class cls, Enum updateType)
postUpdate in interface MorphiumStorageListener<Object>public Msg onMessage(Messaging msg, Msg m)
MessageListeneronMessage in interface MessageListenerpublic void disableCommitMessages()
public void enableCommitMessages()
public void setCommitMessage(boolean msg)
public boolean isCommitMessages()
Copyright © 2022. All rights reserved.