Package one.microstream.storage.types
Class StorageEntityMarkMonitor.Default
java.lang.Object
one.microstream.storage.types.StorageEntityMarkMonitor.Default
- All Implemented Interfaces:
PersistenceObjectIdAcceptor
,StorageEntityMarkMonitor
,StorageReferenceMarker
- Enclosing interface:
- StorageEntityMarkMonitor
public static final class StorageEntityMarkMonitor.Default extends Object implements StorageEntityMarkMonitor, StorageReferenceMarker
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.storage.types.StorageEntityMarkMonitor
StorageEntityMarkMonitor.Creator, StorageEntityMarkMonitor.Default, StorageEntityMarkMonitor.ObjectIds
-
Constructor Summary
Constructors Constructor Description Default()
-
Method Summary
Modifier and Type Method Description void
acceptObjectId(long objectId)
void
advanceMarking(StorageObjectIdMarkQueue oidMarkQueue, int amount)
void
clearPendingStoreUpdate(StorageEntityCache<?> channel)
void
completeSweep(StorageEntityCache<?> channel, StorageRootOidSelector rootOidSelector, long channelRootOid)
String
DEBUG_state()
void
enqueue(StorageObjectIdMarkQueue objectIdMarkQueue, long objectId)
boolean
isComplete(StorageEntityCache<?> channel)
boolean
isMarkingComplete()
boolean
isPendingSweep(StorageEntityCache<?> channel)
boolean
needsSweep(StorageEntityCache<?> channel)
StorageReferenceMarker
provideReferenceMarker(StorageEntityCache<?> channel)
void
reset()
Reset to a clean initial state, ready to be used.void
resetCompletion()
void
signalPendingStoreUpdate(StorageEntityCache<?> channel)
boolean
tryFlush()
-
Constructor Details
-
Default
public Default()
-
-
Method Details
-
reset
public final void reset()Description copied from interface:StorageEntityMarkMonitor
Reset to a clean initial state, ready to be used.- Specified by:
reset
in interfaceStorageEntityMarkMonitor
- Specified by:
reset
in interfaceStorageReferenceMarker
-
isMarkingComplete
public final boolean isMarkingComplete()- Specified by:
isMarkingComplete
in interfaceStorageEntityMarkMonitor
-
advanceMarking
- Specified by:
advanceMarking
in interfaceStorageEntityMarkMonitor
-
signalPendingStoreUpdate
- Specified by:
signalPendingStoreUpdate
in interfaceStorageEntityMarkMonitor
-
clearPendingStoreUpdate
- Specified by:
clearPendingStoreUpdate
in interfaceStorageEntityMarkMonitor
-
needsSweep
- Specified by:
needsSweep
in interfaceStorageEntityMarkMonitor
-
isPendingSweep
- Specified by:
isPendingSweep
in interfaceStorageEntityMarkMonitor
-
completeSweep
public final void completeSweep(StorageEntityCache<?> channel, StorageRootOidSelector rootOidSelector, long channelRootOid)- Specified by:
completeSweep
in interfaceStorageEntityMarkMonitor
-
acceptObjectId
public final void acceptObjectId(long objectId)- Specified by:
acceptObjectId
in interfacePersistenceObjectIdAcceptor
-
enqueue
- Specified by:
enqueue
in interfaceStorageEntityMarkMonitor
-
tryFlush
public final boolean tryFlush()- Specified by:
tryFlush
in interfaceStorageReferenceMarker
-
provideReferenceMarker
- Specified by:
provideReferenceMarker
in interfaceStorageEntityMarkMonitor
-
resetCompletion
public final void resetCompletion()- Specified by:
resetCompletion
in interfaceStorageEntityMarkMonitor
-
isComplete
- Specified by:
isComplete
in interfaceStorageEntityMarkMonitor
-
DEBUG_state
-