Interface Releasable
- All Superinterfaces:
AutoCloseable
- All Known Subinterfaces:
NamedBlockingDeque<E>, NamedBlockingQueue<E>, NamedCache<K,V>, NamedCollection, NamedDeque<E>, NamedMap<K, V>, NamedQueue<E>, NamedTopic<V>, OptimisticNamedCache
- All Known Implementing Classes:
BundlingNamedCache, ContinuousQueryCache, ConverterCollections.ConverterNamedCache, NamedDequeProxy, NamedQueueProxy, NearCache, ReadonlyNamedCache, VersionedNearCache, WrapperNamedCache, com.tangosol.net.queue.WrapperNamedDeque, com.tangosol.net.queue.WrapperNamedQueue
A resource that is activated and then at a later time be released.
- Since:
- Coherence 14.1.1
- Author:
- jk 2015.05.21
-
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:
closein interfaceAutoCloseable
-