Class PersistenceRoots.Default
- java.lang.Object
-
- one.microstream.persistence.types.PersistenceRoots.Default
-
- All Implemented Interfaces:
PersistenceRoots,PersistenceRootsView
- Enclosing interface:
- PersistenceRoots
public static final class PersistenceRoots.Default extends Object implements PersistenceRoots
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface one.microstream.persistence.types.PersistenceRoots
PersistenceRoots.Default
-
-
Constructor Summary
Constructors Constructor Description Default()
-
Method Summary
Modifier and Type Method Description ObjectcustomRoot()StringcustomRootIdentifier()Reference<Object>defaultRoot()StringdefaultRootIdentifier()XGettingTable<String,Object>entries()booleanhasChanged()voidloadingUpdateEntries(XGettingTable<String,Object> resolvedRoots)static PersistenceRoots.DefaultNew(PersistenceRootResolver rootResolver)voidreinitializeEntries(XGettingTable<String,Object> newEntries)voidupdateEntries(XGettingTable<String,Object> newEntries)Used for example during roots synchronization when initializing an embedded storage instance.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface one.microstream.persistence.types.PersistenceRoots
iterateEntries
-
-
-
-
Method Detail
-
New
public static PersistenceRoots.Default New(PersistenceRootResolver rootResolver)
-
defaultRootIdentifier
public final String defaultRootIdentifier()
- Specified by:
defaultRootIdentifierin interfacePersistenceRoots- Specified by:
defaultRootIdentifierin interfacePersistenceRootsView
-
defaultRoot
public final Reference<Object> defaultRoot()
- Specified by:
defaultRootin interfacePersistenceRoots- Specified by:
defaultRootin interfacePersistenceRootsView
-
customRootIdentifier
public final String customRootIdentifier()
- Specified by:
customRootIdentifierin interfacePersistenceRoots- Specified by:
customRootIdentifierin interfacePersistenceRootsView
-
customRoot
public final Object customRoot()
- Specified by:
customRootin interfacePersistenceRoots- Specified by:
customRootin interfacePersistenceRootsView
-
hasChanged
public final boolean hasChanged()
- Specified by:
hasChangedin interfacePersistenceRoots
-
entries
public final XGettingTable<String,Object> entries()
- Specified by:
entriesin interfacePersistenceRoots
-
reinitializeEntries
public final void reinitializeEntries(XGettingTable<String,Object> newEntries)
- Specified by:
reinitializeEntriesin interfacePersistenceRoots
-
updateEntries
public final void updateEntries(XGettingTable<String,Object> newEntries)
Used for example during roots synchronization when initializing an embedded storage instance.- Specified by:
updateEntriesin interfacePersistenceRoots- Parameters:
newEntries- the actual entries to be set.
-
loadingUpdateEntries
public final void loadingUpdateEntries(XGettingTable<String,Object> resolvedRoots)
-
-