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

    Fields
    Modifier and Type
    Field
    Description
    Singleton instance of a NullPersistenceEnvironment.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    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 all resources held by this environment.
    boolean
    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

  • Constructor Details

    • NullPersistenceEnvironment

      public NullPersistenceEnvironment()
  • Method Details

    • openActive

      public com.oracle.coherence.persistence.PersistenceManager<R> openActive()
      Open and return the singleton active PersistenceManager.
      Specified by:
      openActive in interface com.oracle.coherence.persistence.PersistenceEnvironment<R>
      Returns:
      the singleton active PersistenceManager or null if an active PersistenceManager has not been configured
    • openSnapshot

      public com.oracle.coherence.persistence.PersistenceManager<R> openSnapshot(String sSnapshot)
      Open a PersistenceManager used to access the snapshot with the specified identifier.
      Specified by:
      openSnapshot in interface com.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 interface com.oracle.coherence.persistence.PersistenceEnvironment<R>
      Parameters:
      sSnapshot -  the snapshot identifier
      manager - the optional PersistenceManager to create a snapshot of; if null, an empty snapshot will be created
      Returns:
      a PersistenceManager representing the snapshot
    • removeSnapshot

      public boolean removeSnapshot(String sSnapshot)
      Remove the persistent artifacts associated with the snapshot with the specified identifier.
      Specified by:
      removeSnapshot in interface com.oracle.coherence.persistence.PersistenceEnvironment<R>
      Parameters:
      sSnapshot -  the snapshot identifier
      Returns:
      true if the snapshot was successfully deleted, false otherwise
    • listSnapshots

      public String[] listSnapshots()
      Return the identifiers of the snapshots known to this environment.
      Specified by:
      listSnapshots in interface com.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 interface com.oracle.coherence.persistence.PersistenceEnvironment<R>