Class EvictionReplicationsMarkersRepository
java.lang.Object
com.gigaspaces.internal.server.space.eviction.EvictionReplicationsMarkersRepository
- All Implemented Interfaces:
IEvictionReplicationsMarkersRepository
public class EvictionReplicationsMarkersRepository
extends Object
implements IEvictionReplicationsMarkersRepository
repository for replication markers - used in order to prevent eviction of entries that did not
reach the async replication target yet (currently mirror)
- Since:
- 9.1
- Author:
- Yechiel Feffer
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLockObject(String uid) Gets the marker associated to this uid, null of none exists.voidbooleanisEntryEvictable(String uid, boolean alreadyLocked) intreap unsed (i.e.voidreleaseLockObject(Object lockObject) intsize()# of uids inside.
-
Field Details
-
NUM_OF_IMARKERS_REPOSITORY_SEGMENTS
public static final int NUM_OF_IMARKERS_REPOSITORY_SEGMENTS- See Also:
-
-
Constructor Details
-
EvictionReplicationsMarkersRepository
public EvictionReplicationsMarkersRepository()
-
-
Method Details
-
insert
- Specified by:
insertin interfaceIEvictionReplicationsMarkersRepository
-
isEntryEvictable
- Specified by:
isEntryEvictablein interfaceIEvictionReplicationsMarkersRepository
-
getLockObject
- Specified by:
getLockObjectin interfaceIEvictionReplicationsMarkersRepository
-
releaseLockObject
- Specified by:
releaseLockObjectin interfaceIEvictionReplicationsMarkersRepository
-
reapUnused
public int reapUnused()reap unsed (i.e. reached) markers- Specified by:
reapUnusedin interfaceIEvictionReplicationsMarkersRepository- Returns:
- number of reapred markers
-
getMarker
Description copied from interface:IEvictionReplicationsMarkersRepositoryGets the marker associated to this uid, null of none exists.- Specified by:
getMarkerin interfaceIEvictionReplicationsMarkersRepository
-
size
public int size()Description copied from interface:IEvictionReplicationsMarkersRepository# of uids inside.- Specified by:
sizein interfaceIEvictionReplicationsMarkersRepository
-