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.cinchapi.concourse.Concourse.java

/**
 * <p>
 * Concourse is a schemaless and distributed version control database with
 * optimistic availability, serializable transactions and full-text search.
 * Concourse provides a more intuitive approach to data management that is easy
 * to deploy, access and scale with minimal tuning while also maintaining the

From source file JDBCPool.dbcp.demo.sourcecode.BasicDataSource.java

/**
 * <p>Basic implementation of <code>javax.sql.DataSource</code> that is
 * configured via JavaBeans properties.  This is not the only way to
 * combine the <em>commons-dbcp</em> and <em>commons-pool</em> packages,
 * but provides a "one stop shopping" solution for basic requirements.</p>
 *

From source file org.apache.marmotta.kiwi.persistence.KiWiConnection.java

/**
 * A KiWiConnection offers methods for storing and retrieving KiWiTriples, KiWiNodes, and KiWiNamespaces in the
 * database. It wraps a JDBC connection which will be committed on commit(), rolled back on rollback() and
 * closed on close();
 * <p/>
 * Author: Sebastian Schaffert

From source file com.netflix.dyno.jedis.DynoJedisPipeline.java

@NotThreadSafe
public class DynoJedisPipeline implements RedisPipeline, BinaryRedisPipeline, AutoCloseable {

    private static final Logger Logger = LoggerFactory.getLogger(DynoJedisPipeline.class);

    // ConnPool and connection to exec the pipeline

From source file org.xmlsh.sh.shell.Shell.java

public class Shell implements AutoCloseable, Closeable, IShellPrompt, net.sf.saxon.lib.Initializer {
    private static volatile int __id = 0;
    private final int _id = ++__id;

    private static String[] _reservedEnvVars = { ShellConstants.PATH, ShellConstants.PS1, ShellConstants.PS2,
            ShellConstants.ENV_PWD, ShellConstants.VAR_RANDOM, ShellConstants.VAR_RANDOM32,

From source file org.apache.pulsar.broker.PulsarService.java

/**
 * Main class for Pulsar broker service
 */

public class PulsarService implements AutoCloseable {
    private static final Logger LOG = LoggerFactory.getLogger(PulsarService.class);

From source file com.hotelbeds.distribution.hotel_api_sdk.HotelApiClient.java

/**
 * Copyright (c) Hotelbeds Technology S.L.U. All rights reserved.
 */
@Slf4j
@Data
public class HotelApiClient implements AutoCloseable {

From source file com.bigdata.rdf.sail.webapp.client.RemoteRepositoryManager.java

/**
 * A manager for connections to one or more REST API / SPARQL end points for the
 * same bigdata service.
 * 
 * @author bryan
 */

From source file org.apache.hadoop.hive.metastore.HiveMetaStoreClient.java

/**
 * Hive Metastore Client.
 * The public implementation of IMetaStoreClient. Methods not inherited from IMetaStoreClient
 * are not public and can change. Hence this is marked as unstable.
 * For users who require retry mechanism when the connection between metastore and client is
 * broken, RetryingMetaStoreClient class should be used.

From source file com.gargoylesoftware.htmlunit.WebClient.java

/**
 * The main starting point in HtmlUnit: this class simulates a web browser.
 * <p>
 * A standard usage of HtmlUnit will start with using the {@link #getPage(String)} method
 * (or {@link #getPage(URL)}) to load a first {@link Page}
 * and will continue with further processing on this page depending on its type.