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.kew.rmf.reporters.Reporter.java

/**
 * This is a CsvReporter really.
 *
 * Its subclasses manage the output of the deduplication/matching process,
 * receive it row by row and write it wherever they are configured to do so.
 *

From source file org.springframework.cloud.stream.app.twitter.sentiment.processor.TwitterSentimentTensorflowInputConverter.java

/**
 * Converts the input Tweet JSON message into key/value map that corresponds to the Twitter Sentiment CNN model:
 * <code>
 *     data_in : vectorized TEXT tag
 *     dropout_keep_prob: 1.0f
 * </code>

From source file com.shaie.solr.MiniSolrCloudCluster.java

/** Simulates a SolrCloud cluster by creating allowing to start/stop nodes. */
public class MiniSolrCloudCluster implements AutoCloseable {

    public static final String SOLRXML_LOCATION_PROP_NAME = "solr.solrxml.location";
    public static final String SOLRXML_LOCATION_PROP_VALUE = "zookeeper";

From source file org.apache.airavata.api.server.util.ThriftClientPool.java

public class ThriftClientPool<T extends TServiceClient> implements AutoCloseable {

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

    private final GenericObjectPool internalPool;

From source file org.apache.tinkerpop.gremlin.tinkergraph.process.computer.TinkerWorkerPool.java

/**
 * @author Marko A. Rodriguez (http://markorodriguez.com)
 * @author Stephen Mallette (http://stephen.genoprime.com)
 */
public final class TinkerWorkerPool implements AutoCloseable {

From source file com.wegas.core.jcr.content.ContentConnector.java

/**
 * @author Cyril Junod (cyril.junod at gmail.com)
 */
public class ContentConnector implements AutoCloseable {

    static final private org.slf4j.Logger logger = LoggerFactory.getLogger(ContentConnector.class);

From source file com.gmail.tracebachi.DeltaSkins.Shared.MojangApi.java

/**
 * GeeItsZee (tracebachi@gmail.com)
 */
public class MojangApi implements AutoCloseable {
    private static final int CONNECT_TIMEOUT = 7000;
    private static final int READ_TIMEOUT = 7000;

From source file org.sonar.core.util.CloseableIterator.java

public abstract class CloseableIterator<O> implements Iterator<O>, AutoCloseable {
    private O nextObject = null;
    boolean isClosed = false;
    private static final CloseableIterator<?> EMPTY_CLOSEABLE_ITERATOR = new CloseableIterator<Object>() {
        @Override
        public boolean hasNext() {

From source file ms.safi.btsync.BTSyncApp.java

/**
 * BTSyncApp is used for starting an instance of BitTorrent Sync. A BitTorrent Sync v1.3.105 
 * executable for linux and windows platforms are bundled with this library.
 * 
 * @author Omeed Safi
 */

From source file de.anycook.db.mysql.DBHandler.java

/**
 * Alle MySQL-Zugriffe geschehen ueber diese Klasse. Benutzt connectionpool
 *
 * @author Jan Grassegger
 */
public class DBHandler implements AutoCloseable {