Package com.tangosol.util
Class NullImplementation.NullPersistenceEnvironment<R>
java.lang.Object
com.tangosol.util.NullImplementation.NullPersistenceEnvironment<R>
- Type Parameters:
R- the raw value type
- All Implemented Interfaces:
com.oracle.coherence.persistence.PersistenceEnvironment<R>
- Direct Known Subclasses:
SafePersistenceWrappers.SafePersistenceEnvironment
- Enclosing class:
- NullImplementation
public static class NullImplementation.NullPersistenceEnvironment<R>
extends Object
implements com.oracle.coherence.persistence.PersistenceEnvironment<R>
A
PersistenceEnvironment that does nothing.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final NullImplementation.NullPersistenceEnvironmentSingleton instance of a NullPersistenceEnvironment. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.oracle.coherence.persistence.PersistenceManager<R>createSnapshot(String sSnapshot, com.oracle.coherence.persistence.PersistenceManager<R> manager) Create a PersistenceManager used to manage the snapshot with the specified identifier.String[]Return the identifiers of the snapshots known to this environment.com.oracle.coherence.persistence.PersistenceManager<R>Open and return the singleton active PersistenceManager.com.oracle.coherence.persistence.PersistenceManager<R>openSnapshot(String sSnapshot) Open a PersistenceManager used to access the snapshot with the specified identifier.voidrelease()Release all resources held by this environment.booleanremoveSnapshot(String sSnapshot) Remove the persistent artifacts associated with the snapshot with the specified identifier.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.oracle.coherence.persistence.PersistenceEnvironment
createSnapshot, openBackup, openEvents
-
Field Details
-
INSTANCE
Singleton instance of a NullPersistenceEnvironment.
-
-
Constructor Details
-
NullPersistenceEnvironment
public NullPersistenceEnvironment()
-
-
Method Details
-
openActive
Open and return the singleton active PersistenceManager.- Specified by:
openActivein interfacecom.oracle.coherence.persistence.PersistenceEnvironment<R>- Returns:
- the singleton active PersistenceManager or null if an active PersistenceManager has not been configured
-
openSnapshot
Open a PersistenceManager used to access the snapshot with the specified identifier.- Specified by:
openSnapshotin interfacecom.oracle.coherence.persistence.PersistenceEnvironment<R>- Parameters:
sSnapshot- the snapshot identifier- Returns:
- a PersistenceManager representing the snapshot
-
createSnapshot
public com.oracle.coherence.persistence.PersistenceManager<R> createSnapshot(String sSnapshot, com.oracle.coherence.persistence.PersistenceManager<R> manager) Create a PersistenceManager used to manage the snapshot with the specified identifier.- Specified by:
createSnapshotin interfacecom.oracle.coherence.persistence.PersistenceEnvironment<R>- Parameters:
sSnapshot- the snapshot identifiermanager- the optional PersistenceManager to create a snapshot of; if null, an empty snapshot will be created- Returns:
- a PersistenceManager representing the snapshot
-
removeSnapshot
Remove the persistent artifacts associated with the snapshot with the specified identifier.- Specified by:
removeSnapshotin interfacecom.oracle.coherence.persistence.PersistenceEnvironment<R>- Parameters:
sSnapshot- the snapshot identifier- Returns:
- true if the snapshot was successfully deleted, false otherwise
-
listSnapshots
Return the identifiers of the snapshots known to this environment.- Specified by:
listSnapshotsin interfacecom.oracle.coherence.persistence.PersistenceEnvironment<R>- Returns:
- a list of the known snapshot identifiers
-
release
public void release()Release all resources held by this environment. Note that the behavior of all other methods on this environment is undefined after this method is called.- Specified by:
releasein interfacecom.oracle.coherence.persistence.PersistenceEnvironment<R>
-