Class LocalCache
java.lang.Object
com.gigaspaces.internal.client.cache.AbstractSpaceCache
com.gigaspaces.internal.client.cache.NotifySpaceCache
com.gigaspaces.internal.client.cache.localcache.LocalCache
-
Field Summary
Fields inherited from class com.gigaspaces.internal.client.cache.NotifySpaceCache
_eventSessionFields inherited from class com.gigaspaces.internal.client.cache.AbstractSpaceCache
_cacheID, _localSpace, _logger, _remoteSpace -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToCache(IEntryPacket entry, int updateModifiers, long readUpdateTime) voidvoidclose()longintUpdate mode indicates whether to use a PUSH or a PULL to triggers an invalidation.voidprotected org.slf4j.LoggervoidremoveFromCache(String uid, Transaction txn, boolean disableInsertions) voidupdateCache(IEntryPacket updatedPacket, Object objectToUpdateWith, Transaction txn, long lease, int updateModifiers, long updateTime) voidupdateCache(IEntryPacket updatedPacket, Transaction transaction, long lease, int updateModifiers, long updateTime) protected booleanMethods inherited from class com.gigaspaces.internal.client.cache.NotifySpaceCache
getCacheSuffix, isHealthyMethods inherited from class com.gigaspaces.internal.client.cache.AbstractSpaceCache
getCacheEntryDataType, getInitializationException, getLocalProxy, getLocalSpaceImpl, getLogger, getRemoteProxy, isClosed, onCacheFailure
-
Constructor Details
-
LocalCache
-
-
Method Details
-
initialize
- Overrides:
initializein classNotifySpaceCache- Throws:
SpaceInitializationExceptionInterruptedException
-
close
public void close()- Overrides:
closein classNotifySpaceCache
-
initLogger
protected org.slf4j.Logger initLogger()- Specified by:
initLoggerin classAbstractSpaceCache
-
getUpdateMode
public int getUpdateMode()Update mode indicates whether to use a PUSH or a PULL to triggers an invalidation. A value of 1 indicates PULL mode, and 2 PUSH mode. This value overrides the value provided as part of the master/local cache configuration.- Returns:
- Returns the update mode indication.
-
getMaxTimeToLive
public long getMaxTimeToLive() -
useFifoEventListeners
protected boolean useFifoEventListeners()- Specified by:
useFifoEventListenersin classNotifySpaceCache
-
addToCache
public void addToCache(IEntryPacket entry, int updateModifiers, long readUpdateTime) throws RemoteException - Throws:
RemoteException
-
removeFromCache
-
updateCache
public void updateCache(IEntryPacket updatedPacket, Object objectToUpdateWith, Transaction txn, long lease, int updateModifiers, long updateTime) -
updateCache
public void updateCache(IEntryPacket updatedPacket, Transaction transaction, long lease, int updateModifiers, long updateTime) -
cleanBlockedEntries
public void cleanBlockedEntries()
-