List of usage examples for java.lang AutoCloseable interface-usage
From source file org.ponder.serviceframework.ServiceInvoker.Thrift.ThriftClient.java
/** * * @author han */ public class ThriftClient extends ServicePool implements AutoCloseable {
From source file pt.isel.mpd.monitrgw.webapi.MonitrApiAsyncNio.java
public class MonitrApiAsyncNio implements AutoCloseable { private static final String MONITR_API_KEY = "1e3f8640-f754-11e3-97e9-179fff8a3cc5"; private static final String MONITR_URI = "http://api.monitr.com/api"; private final Gson jsonReader; private final HttpGwAsyncNio asyncClient;
From source file io.fluo.quickstart.MiniHelper.java
/** * Some utility code to start {@link MiniAccumuloCluster} and {@link MiniFluo} */ public class MiniHelper implements AutoCloseable { private File dir;
From source file org.apache.beam.sdk.io.hcatalog.EmbeddedMetastoreService.java
/**
* Implementation of a light-weight embedded metastore. This class is a trimmed-down version of <a
* href="https://github.com/apache/hive/blob/master
* /hcatalog/core/src/test/java/org/apache/hive/hcatalog/mapreduce/HCatBaseTest.java">
* https://github.com/apache/hive/blob/master/hcatalog/core/src/test/java/org/apache/hive/hcatalog/mapreduce
* /HCatBaseTest.java </a>
From source file nl.esciencecenter.ptk.web.ResponseInputStream.java
/**
* Managed ResponseInputStream from a HttpGet Request.
* This Stream auto closes the Actual HTTP STream when an IOException occurs no input
* is available.
* This to release the HTTP Connection ASAP. This is needed when using a Multi-threaded connection manager.
* Either call close() or autoClose(), which both are idempotent methods, they can be called more then once,
From source file org.apache.geode_examples.clientSecurity.Example.java
public class Example implements AutoCloseable { private static final Logger logger = LogService.getLogger(); private static final String REGION1 = "region1"; private static final String REGION2 = "region2";
From source file org.corfudb.client.PooledThriftClient.java
/**
* This class implements a pooled Thrift client which other protocols may use.
* Somewhat based on http://vincentdevillers.blogspot.com/2013/11/pooling-thrift-client.html
*
* @author Michael Wei <mwei@cs.ucsd.edu>
*/
From source file com.sqs.tq.fdc.Reporter.java
public interface Reporter extends AutoCloseable { void report(ObjectNode reportData); }
From source file net.staticsnow.nexus.repository.apt.internal.hosted.CompressingTempFileStore.java
/** * Stores a set of temp files, automatically compressing each into a GZIP, BZ2 and plain format. * */ class CompressingTempFileStore implements AutoCloseable { private final Map<String, FileHolder> holdersByKey = new HashMap<>();
From source file org.polymap.model2.runtime.EntityRepository.java
/**
*
* <p/>
* One repository is backed by exactly one underlying store. Client may decide to
* work with different repositories and their {@link UnitOfWork} instances. It is
* responsible of synchronizing commit/rollback between those instances.