
com.tangosol.net.Releasable Maven / Gradle / Ivy
/*
* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
package com.tangosol.net;
/**
* A resource that is activated and then at a later time be released.
*
* @author jk 2015.05.21
* @since Coherence 14.1.1
*/
public interface Releasable
extends AutoCloseable
{
/**
* Specifies whether or not the Releasable is active.
*
* @return true if the NamedCache is active; false otherwise
*/
public boolean isActive();
/**
* Release local resources associated with this Releasable instance.
*/
public void release();
@Override
default void close()
{
release();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy