Interface Releasable

All Superinterfaces:
AutoCloseable
All Known Subinterfaces:
NamedCache<K,V>, NamedCollection, NamedMap<K,V>, NamedTopic<V>
All Known Implementing Classes:
BundlingNamedCache, ContinuousQueryCache, ConverterCollections.ConverterNamedCache, NearCache, ReadonlyNamedCache, VersionedNearCache, WrapperNamedCache

public interface Releasable extends AutoCloseable
A resource that is activated and then at a later time be released.
Since:
Coherence 14.1.1
Author:
jk 2015.05.21
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
     
    boolean
    Specifies whether the Releasable is active.
    default boolean
    Specifies whether or this Releasable has been released.
    void
    Release local resources associated with this Releasable instance.
  • Method Details

    • isActive

      boolean isActive()
      Specifies whether the Releasable is active.
      Returns:
      true if active; false otherwise
    • isReleased

      default boolean isReleased()
      Specifies whether or this Releasable has been released.

      Implementations must override this method to provide the necessary information.
      Returns:
      true if the Releasable has been released; false otherwise
    • release

      void release()
      Release local resources associated with this Releasable instance.
    • close

      default void close()
      Specified by:
      close in interface AutoCloseable