public class CacheSynchronizer extends Object implements MessageListener, MorphiumStorageListener<Object>
MorphiumStorageListener.UpdateTypes| Modifier and Type | Field and Description |
|---|---|
static String |
CACHE_SYNC_RECORD |
static String |
CACHE_SYNC_TYPE |
| Constructor and Description |
|---|
CacheSynchronizer(Messaging msg,
Morphium morphium) |
public static final String CACHE_SYNC_TYPE
public static final String CACHE_SYNC_RECORD
public void addSyncListener(CacheSyncListener cl)
public void removeSyncListener(CacheSyncListener cl)
public void addSyncListener(Class type, CacheSyncListener cl)
public void removeSyncListener(Class type, CacheSyncListener cl)
public void firePreSendEvent(Class type, Msg m) throws CacheSyncVetoException
CacheSyncVetoExceptionpublic 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 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 © 2014. All Rights Reserved.