Package com.j_spaces.core.cache
Class EvictableEntryCacheInfo
java.lang.Object
com.j_spaces.core.cache.MemoryBasedEntryCacheInfo
com.j_spaces.core.cache.EvictableEntryCacheInfo
- All Implemented Interfaces:
IHashEntry<Object,,IStoredList<IEntryCacheInfo>> EvictableServerEntry,ServerEntry,IEntryCacheInfo,ILeasedEntryCacheInfo,ICollection<IEntryCacheInfo>,IObjectInfo<IEntryCacheInfo>,IStoredList<IEntryCacheInfo>,IStoredListIterator<IEntryCacheInfo>,IObjectsList,IScanListIterator<IEntryCacheInfo>
public class EvictableEntryCacheInfo
extends MemoryBasedEntryCacheInfo
implements EvictableServerEntry
- Since:
- 5.0
- Version:
- 1.0
- Author:
- Yechiel Fefer
-
Field Summary
Fields inherited from class com.j_spaces.core.cache.MemoryBasedEntryCacheInfo
UID_HASH_INDICATOR -
Constructor Summary
ConstructorsConstructorDescriptionEvictableEntryCacheInfo(IEntryHolder entryHolder) EvictableEntryCacheInfo(IEntryHolder entryHolder, int backRefsSize) EvictableEntryCacheInfo(IEntryHolder entryHolder, int backRefsSize, boolean pinned) -
Method Summary
Modifier and TypeMethodDescriptionvoidreturned from call to E.S., notify remover if waitingin order to avoid searching the eviction handler data structures when an existing entry is rendered to it by the space cache manager, the eviction-handler may store a backref to the entry in it data structure and retrieve it laterbooleanbooleanbooleanbooleanisPinned()booleanbooleanbooleanbooleanbooleanvoidbooleancan eviction strategy be called ?voidsetEvictionPayLoad(Object evictionBackRef) in order to avoid searching the eviction handler data structures when an existing entry is rendered to it by the space cache manager, the eviction-handler may store a backref to the entry in it data structure and retrieve it latervoidsetInCache(boolean checkPendingPin) voidbooleansetPinned(boolean value) booleansetPinned(boolean value, boolean waitIfPendingInsertion) voidvoidvoidsetRemovedFromEvictionStrategy(boolean checkWaiters) booleansetRemoving(boolean isPinned) voidvoidbooleanMethods inherited from class com.j_spaces.core.cache.MemoryBasedEntryCacheInfo
add, addUnlocked, contains, dump, establishListScan, freeSLHolder, getAlreadyMatchedFixedPropertyIndexPos, getBackRefs, getClassName, getEntryHolder, getEntryHolder, getEntryHolder, getExpirationTime, getFixedPropertyValue, getHashCode, getHead, getKey, getLatestIndexCreationNumber, getLeaseManagerListRef, getLeaseManagerPosition, getMainListBackRef, getObjectFromHead, getObjectStoredInLeaseManager, getPathValue, getPropertyValue, getServerTypeDesc, getSpaceTypeDescriptor, getSubject, getUID, getValue, getVersion, hasNext, indexesBackRefsKept, invalidate, isAlreadyMatched, isBlobStoreEntry, isConnectedToLeaseManager, isDeleted, isEmpty, isIterator, isMultiObjectCollection, isNativeHashEntry, isSameLeaseManagerRef, isTransient, next, next, optimizeScanForSingleObject, preMatch, release, releaseScan, remove, removeByObject, removeUnlocked, setBackRefs, setLatestIndexCreationNumber, setLeaseManagerListRefAndPosition, setMainListBackRef, setSubjectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.gigaspaces.server.eviction.EvictableServerEntry
getUIDMethods inherited from interface com.j_spaces.kernel.ICollection
establishListScanMethods inherited from interface com.j_spaces.core.cache.IEntryCacheInfo
hasSize, sizeMethods inherited from interface com.j_spaces.kernel.list.IScanListIterator
createCopyForAlternatingThread, getAlreadyMatchedIndexPath, isExtensionIndex, isMultiListsIterator, noRematchNeededMethods inherited from interface com.gigaspaces.server.ServerEntry
getExpirationTime, getFixedPropertyValue, getPathValue, getPropertyValue, getSpaceTypeDescriptor, getVersion
-
Constructor Details
-
EvictableEntryCacheInfo
-
EvictableEntryCacheInfo
-
EvictableEntryCacheInfo
-
-
Method Details
-
setEvictionPayLoad
in order to avoid searching the eviction handler data structures when an existing entry is rendered to it by the space cache manager, the eviction-handler may store a backref to the entry in it data structure and retrieve it later- Specified by:
setEvictionPayLoadin interfaceEvictableServerEntry- Overrides:
setEvictionPayLoadin classMemoryBasedEntryCacheInfo
-
getEvictionPayLoad
in order to avoid searching the eviction handler data structures when an existing entry is rendered to it by the space cache manager, the eviction-handler may store a backref to the entry in it data structure and retrieve it later- Specified by:
getEvictionPayLoadin interfaceEvictableServerEntry- Overrides:
getEvictionPayLoadin classMemoryBasedEntryCacheInfo- Returns:
- the eviction back-ref to the entry, or null if not stored
-
setPinned
public boolean setPinned(boolean value, boolean waitIfPendingInsertion) - Specified by:
setPinnedin interfaceIEntryCacheInfo- Overrides:
setPinnedin classMemoryBasedEntryCacheInfo
-
setPinned
public boolean setPinned(boolean value) - Specified by:
setPinnedin interfaceIEntryCacheInfo- Overrides:
setPinnedin classMemoryBasedEntryCacheInfo
-
isPinned
public boolean isPinned()- Specified by:
isPinnedin interfaceIEntryCacheInfo- Overrides:
isPinnedin classMemoryBasedEntryCacheInfo
-
isRemoving
public boolean isRemoving()- Specified by:
isRemovingin interfaceIEntryCacheInfo- Overrides:
isRemovingin classMemoryBasedEntryCacheInfo
-
setRemoving
public boolean setRemoving(boolean isPinned) - Specified by:
setRemovingin interfaceIEntryCacheInfo- Overrides:
setRemovingin classMemoryBasedEntryCacheInfo
-
setRemoved
public void setRemoved()- Specified by:
setRemovedin interfaceIEntryCacheInfo- Overrides:
setRemovedin classMemoryBasedEntryCacheInfo
-
isRemoved
public boolean isRemoved()- Specified by:
isRemovedin interfaceIEntryCacheInfo- Overrides:
isRemovedin classMemoryBasedEntryCacheInfo
-
isRemovingOrRemoved
public boolean isRemovingOrRemoved()- Specified by:
isRemovingOrRemovedin interfaceIEntryCacheInfo- Overrides:
isRemovingOrRemovedin classMemoryBasedEntryCacheInfo
-
notifyWaitersOnFailure
public void notifyWaitersOnFailure() -
verifyEntryRemovedFromStrategy
public void verifyEntryRemovedFromStrategy() -
setInCache
public void setInCache(boolean checkPendingPin) - Specified by:
setInCachein interfaceIEntryCacheInfo- Overrides:
setInCachein classMemoryBasedEntryCacheInfo
-
isInCache
public boolean isInCache()- Overrides:
isInCachein classMemoryBasedEntryCacheInfo
-
isInserted
public boolean isInserted()- Overrides:
isInsertedin classMemoryBasedEntryCacheInfo
-
wasInserted
public boolean wasInserted()- Specified by:
wasInsertedin interfaceIEntryCacheInfo- Overrides:
wasInsertedin classMemoryBasedEntryCacheInfo
-
isRecentDelete
public boolean isRecentDelete()- Specified by:
isRecentDeletein interfaceIEntryCacheInfo- Overrides:
isRecentDeletein classMemoryBasedEntryCacheInfo
-
setRecentDelete
public void setRecentDelete()- Specified by:
setRecentDeletein interfaceIEntryCacheInfo- Overrides:
setRecentDeletein classMemoryBasedEntryCacheInfo
-
isRemovedFromEvictionStrategy
public boolean isRemovedFromEvictionStrategy() -
setRemovedFromEvictionStrategy
public void setRemovedFromEvictionStrategy(boolean checkWaiters) -
isInEvictionStrategy
public boolean isInEvictionStrategy() -
setInEvictionStrategy
public void setInEvictionStrategy() -
verifyBeforeEntryRemoval
public void verifyBeforeEntryRemoval() -
permitCallingEvictionStrategy
public boolean permitCallingEvictionStrategy()can eviction strategy be called ?- Returns:
- true if E.S. can be called
-
afterCallingEvictionStrategy
public void afterCallingEvictionStrategy()returned from call to E.S., notify remover if waiting
-