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
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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidclose()booleanisActive()Specifies whether the Releasable is active.default booleanisReleased()Specifies whether or this Releasable has been released.voidrelease()Release local resources associated with this Releasable instance.
-
-
-
Method Detail
-
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
-
-