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
Modifier and TypeFieldDescriptionstatic final NullImplementation.NullPersistenceEnvironment
Singleton instance of a NullPersistenceEnvironment. -
Constructor Summary
-
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.void
release()
Release all resources held by this environment.boolean
removeSnapshot
(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, wait
Methods 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:
openActive
in 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:
openSnapshot
in 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:
createSnapshot
in 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:
removeSnapshot
in 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:
listSnapshots
in 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:
release
in interfacecom.oracle.coherence.persistence.PersistenceEnvironment<R>
-