Example usage for java.lang AutoCloseable interface-usage

List of usage examples for java.lang AutoCloseable interface-usage

Introduction

In this page you can find the example usage for java.lang AutoCloseable interface-usage.

Usage

From source file org.janusgraph.diskstorage.Backend.java

/**
 * Orchestrates and configures all backend systems:
 * The primary backend storage ({@link KeyColumnValueStore}) and all external indexing providers ({@link IndexProvider}).
 *
 * @author Matthias Broecheler (me@matthiasb.com)
 */

From source file mil.army.usace.data.dataquery.rdbms.RdbmsDataQuery.java

public abstract class RdbmsDataQuery implements DataQuery, AutoCloseable {

    Connection conn;
    private final int GET = 0;
    private final int SET = 1;
    public DB db = null;

From source file org.jboss.set.aphrodite.Aphrodite.java

public class Aphrodite implements AutoCloseable {

    @SuppressWarnings("WeakerAccess")
    public static final String FILE_PROPERTY = "aphrodite.config";

    private static final Log LOG = LogFactory.getLog(Aphrodite.class);

From source file eu.eubrazilcc.lvl.core.entrez.EntrezHelper.java

/**
 * Utilities to interact with the Entrez NCBI search system.
 * @author Erik Torres <ertorser@upv.es>
 * @see <a href="http://www.ncbi.nlm.nih.gov/nuccore">Nucleotide NCBI</a>
 */
public final class EntrezHelper implements AutoCloseable {

From source file org.apache.tinkerpop.gremlin.groovy.jsr223.GremlinGroovyScriptEngine.java

/**
 * Provides methods to compile and evaluate Gremlin scripts. Compiled scripts are stored in a managed cache to cut
 * down on compilation times of future evaluations of the same script.  This {@code ScriptEngine} implementation is
 * heavily adapted from the {@code GroovyScriptEngineImpl} to include some additional functionality.
 *
 * @author Marko A. Rodriguez (http://markorodriguez.com)

From source file androidx.media.MediaSession2.java

/**
 * Allows a media app to expose its transport controls and playback information in a process to
 * other processes including the Android framework and other apps. Common use cases are as follows.
 * <ul>
 *     <li>Bluetooth/wired headset key events support</li>
 *     <li>Android Auto/Wearable support</li>

From source file org.obm.sync.push.client.OPClient.java

public abstract class OPClient implements AutoCloseable {

    protected Logger logger = LoggerFactory.getLogger(getClass());

    protected CloseableHttpClient hc;
    protected ProtocolVersion protocolVersion;

From source file org.apache.bookkeeper.client.BookKeeper.java

/**
 * BookKeeper client. We assume there is one single writer to a ledger at any
 * time.
 *
 * There are four possible operations: start a new ledger, write to a ledger,
 * read from a ledger and delete a ledger.

From source file org.opendaylight.vpnservice.itm.listeners.VtepConfigSchemaListener.java

/**
 * The listener class interested in processing data change on
 * {@code VtepConfigSchema} objects.
 *
 * @see VtepConfigSchema
 */

From source file org.apache.storm.localizer.AsyncLocalizer.java

/**
 * Downloads and caches blobs locally.
 */
public class AsyncLocalizer implements AutoCloseable {
    private static final Logger LOG = LoggerFactory.getLogger(AsyncLocalizer.class);
    public static final String FILECACHE = "filecache";