List of usage examples for java.lang AutoCloseable interface-usage
From source file org.eclipse.packagedrone.utils.rpm.build.PayloadRecorder.java
public class PayloadRecorder implements AutoCloseable, PayloadProvider { public static class Result { private final long size; private final byte[] sha1;
From source file de.sqlcoach.db.jdbc.DBConnection.java
/**
* The Class DBConnection. This class is a Wrapper for java.util.Connection
*
* @author Bernhard Schiefer
* @version 0.1
*/
From source file io.github.dsheirer.record.wave.WaveWriter.java
public class WaveWriter implements AutoCloseable { public static final String RIFF_ID = "RIFF"; public static final int INITIAL_TOTAL_LENGTH = 4; public static final String WAVE_ID = "WAVE"; public static final String FORMAT_CHUNK_ID = "fmt ";
From source file grakn.core.console.ConsoleSession.java
/** * A Grakn Console Session that allows a user to interact with the Grakn Server */ public class ConsoleSession implements AutoCloseable { private static final String COPYRIGHT = "\n" + "Welcome to Grakn Console. You are now in Grakn Wonderland!\n"
From source file org.apache.pulsar.functions.runtime.RuntimeSpawner.java
@Slf4j public class RuntimeSpawner implements AutoCloseable { @Getter private final InstanceConfig instanceConfig; @Getter
From source file org.echocat.jomon.process.daemon.ProcessDaemonRepository.java
@ThreadSafe public class ProcessDaemonRepository<E, ID, P extends GeneratedProcess<E, ID>, D extends ProcessDaemon<E, ID, P, ?, ?>, R extends ProcessDaemonRequirement<E, ID, P, ? extends D>, Q extends BaseProcessDaemonQuery<E, ID, ?, ? extends D>, G extends Generator<P, ?>> implements QueryableRepository<Q, ID, D>, Iterable<D>, RemovingRepository<Q, ID>, Generator<D, R>, AutoCloseable { @Nonnull
From source file org.apache.tinkerpop.gremlin.driver.remote.RemoteGraphProvider.java
/** * @author Stephen Mallette (http://stephen.genoprime.com) */ public class RemoteGraphProvider extends AbstractGraphProvider implements AutoCloseable { private static final Set<Class> IMPLEMENTATION = new HashSet<Class>() { {
From source file org.polymap.p4.map.ProjectLayerProvider.java
/**
* Builds OpenLayers layer objects for the {@link MapViewer} of the {@link ProjectMapPanel}
* out of {@link ILayer} instances.
*
* @author <a href="http://www.polymap.de">Falko Brutigam</a>
*/
From source file uk.ac.ebi.atlas.search.diffanalytics.DiffAnalyticsTSVWriter.java
@Named @Scope("prototype") public class DiffAnalyticsTSVWriter implements AutoCloseable, Visitor<DiffAnalytics> { private static final Logger LOGGER = Logger.getLogger(DiffAnalyticsTSVWriter.class); private String tsvFileMastheadTemplate; private static final String[] HEADERS = { "Gene", "Organism", "Experiment Accession", "Comparison", "p-value",
From source file io.pravega.service.server.host.ZKSegmentContainerMonitor.java
/**
* Monitors the current set of running segment containers and ensure it matches the ownership assignment for this host.
* This monitor watches the shared zk entry that contains the segment container ownership information
* and starts or stops appropriate segment containers locally. Any start failures are periodically retried until
* the desired ownership state is achieved.
*/