Package com.tangosol.net
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
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
-