List of usage examples for java.lang AutoCloseable interface-usage
From source file io.github.retz.admin.AdminConsoleClient.java
public class AdminConsoleClient implements AdminConsoleMXBean, AutoCloseable { static final Logger LOG = LoggerFactory.getLogger(AdminConsoleClient.class); private JmxClient client; private ObjectName objectName; private ObjectMapper mapper;
From source file com.google.maps.LocalTestServerContext.java
/** Local test mock server for unit tests. */ public class LocalTestServerContext implements AutoCloseable { private final MockWebServer server; public final GeoApiContext context; private RecordedRequest request = null;
From source file org.opencb.hpg.bigdata.core.io.VcfBlockIterator.java
/** * @author mh719 * */ public class VcfBlockIterator implements AutoCloseable, Iterator<List<CharBuffer>>, Iterable<List<CharBuffer>> { private static final long DEFAULT_64KB_BLOCK = 64L * 1024L;
From source file com.mebigfatguy.inventory.core.Inventory.java
public class Inventory implements AutoCloseable { private File archive; private Set<InventoryEventListener> listeners; private InputStream stream; private InputStream overrideStream;
From source file edu.emory.cci.aiw.i2b2etl.ConfigurationFactory.java
/** * * @author Andrew Post */ public class ConfigurationFactory implements AutoCloseable {
From source file com.helger.httpclient.HttpClientManager.java
/** * A small wrapper around {@link CloseableHttpClient}. * * @author Philip Helger */ public class HttpClientManager implements AutoCloseable {
From source file org.apache.beam.sdk.io.hcatalog.test.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 com.playonlinux.filesystem.DirectoryWatcher.java
public abstract class DirectoryWatcher<T> implements AutoCloseable { protected final Path observedDirectory; private final WatchService watcher; private Consumer<T> changeConsumer; public DirectoryWatcher(ExecutorService executorService, Path observedDirectory) {
From source file com.linkedin.pinot.core.segment.store.SegmentDirectory.java
/**
*
* Basic top-level interface to access segment indexes.
* Usage:
* <pre>
* {@code
From source file org.apache.pulsar.client.impl.LookupService.java
/**
* Provides lookup service to find broker which serves given topic. It helps to
* lookup
* <ul>
* <li><b>topic-lookup:</b> lookup to find broker-address which serves given
* topic</li>