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.opendaylight.netvirt.dhcpservice.DhcpInterfaceEventListener.java

public class DhcpInterfaceEventListener extends AbstractDataChangeListener<Interface> implements AutoCloseable {

    private static final Logger logger = LoggerFactory.getLogger(DhcpInterfaceEventListener.class);
    private DhcpManager dhcpManager;
    private ListenerRegistration<DataChangeListener> listenerRegistration;
    private DataBroker dataBroker;

From source file org.apache.tinkerpop.gremlin.process.traversal.Traversal.java

/**
 * A {@link Traversal} represents a directed walk over a {@link Graph}.
 * This is the base interface for all traversal's, where each extending interface is seen as a domain specific language.
 * For example, {@link GraphTraversal} is a domain specific language for traversing a graph using "graph concepts" (e.g. vertices, edges).
 * Another example may represent the graph using "social concepts" (e.g. people, cities, artifacts).
 * A {@link Traversal} is evaluated in one of two ways: iterator-based OLTP or {@link GraphComputer}-based OLAP.

From source file io.pravega.controller.task.Stream.StreamTransactionMetadataTasks.java

/**
 * Collection of metadata update tasks on stream.
 * Task methods are annotated with @Task annotation.
 * <p>
 * Any update to the task method signature should be avoided, since it can cause problems during upgrade.
 * Instead, a new overloaded method may be created with the same task annotation name but a new version.

From source file org.opendaylight.netvirt.dhcpservice.DhcpManager.java

public class DhcpManager implements AutoCloseable {

    private static final Logger logger = LoggerFactory.getLogger(DhcpManager.class);
    private final DataBroker broker;
    IMdsalApiManager mdsalUtil;

From source file org.apache.arrow.vector.file.json.JsonFileReader.java

public class JsonFileReader implements AutoCloseable {
    private final File inputFile;
    private final JsonParser parser;
    private final BufferAllocator allocator;
    private Schema schema;

From source file org.apache.ivy.util.url.HttpClientHandler.java

    private String proxyUserName = null;

    private String proxyPasswd = null;

    private HttpClientHelper httpClientHelper;

From source file eu.eubrazilcc.lvl.core.http.client.HttpClientProvider.java

/**
 * Provides two classes of HTTP clients: a) a client that reuses connections from a pool; and b) a client isolated from the pool.
 * Regardless of the client, HTTP/1.1 protocol version is used.
 * @author Erik Torres <ertorser@upv.es>
 */
public class HttpClientProvider implements AutoCloseable {

From source file org.apache.rya.benchmark.periodic.KafkaLatencyBenchmark.java

/**
 * This benchmark is useful for determining the performance characteristics of a Rya Triplestore under continuous ingest
 * that has a PCJ Query that is incrementally updated by the Rya PCJ Fluo App (aka PCJ Updater).
 * <p>
 * This benchmark periodically loads a batch of data into Rya and reports the delay of the following query
 *

From source file at.gv.egiz.pdfas.lib.pki.impl.OCSPClient.java

import iaik.x509.ocsp.SingleResponse;
import iaik.x509.ocsp.UnknownResponseException;

/**
 * Simple OCSP client for requesting OCSP responses via http. Uses Apache http client.
 * 

From source file org.apache.ignite.internal.processors.query.h2.opt.GridLuceneIndex.java

/**
 * Lucene fulltext index.
 */
public class GridLuceneIndex implements AutoCloseable {
    /** Field name for string representation of value. */
    public static final String VAL_STR_FIELD_NAME = "_gg_val_str__";