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.groupbasedpolicy.endpoint.EndpointRpcRegistry.java

/**
 * Endpoint registry provides a scalable store for accessing and updating
 * information about endpoints.
 */
public class EndpointRpcRegistry implements EndpointService, EpRendererAugmentationRegistry, AutoCloseable {

From source file org.commonjava.cartographer.client.CartographerRESTClient.java

import org.commonjava.propulsor.client.http.helper.HttpResources;
import org.commonjava.propulsor.client.http.helper.UrlUtils;
import org.commonjava.util.jhttpc.HttpFactory;
import org.commonjava.util.jhttpc.auth.ClientAuthenticator;
import org.commonjava.util.jhttpc.auth.PasswordManager;
import org.commonjava.util.jhttpc.model.SiteConfig;

From source file org.opendaylight.vpnservice.dhcpservice.DhcpPktHandler.java

public class DhcpPktHandler implements AutoCloseable, PacketProcessingListener {

    private static final Logger LOG = LoggerFactory.getLogger(DhcpPktHandler.class);
    private final DataBroker dataBroker;
    private final DhcpManager dhcpMgr;
    private OdlInterfaceRpcService interfaceManagerRpc;

From source file org.apache.pulsar.functions.instance.JavaInstanceRunnable.java

/**
 * A function container implemented using java thread.
 */
@Slf4j
public class JavaInstanceRunnable implements AutoCloseable, Runnable {

From source file org.opencb.opencga.catalog.managers.CatalogManager.java

public class CatalogManager implements AutoCloseable {

    protected static Logger logger = LoggerFactory.getLogger(CatalogManager.class);

    private DBAdaptorFactory catalogDBAdaptorFactory;
    private CatalogIOManagerFactory catalogIOManagerFactory;

From source file io.github.arven.flare.boot.TomcatContainer.java

/**
 * @version $Rev$ $Date$
 */
public class TomcatContainer implements AutoCloseable {
    static {
        // org.apache.naming

From source file com.spotify.helios.client.HeliosClient.java

public class HeliosClient implements AutoCloseable {

    private static final Logger log = LoggerFactory.getLogger(HeliosClient.class);

    private final String user;
    private final RequestDispatcher dispatcher;

From source file de.dlr.sc.tigl.CpacsConfiguration.java

public class CpacsConfiguration implements AutoCloseable {

    /**
     * Central logger instance.
     */
    protected static final Log LOGGER = LogFactory.getLog(CpacsConfiguration.class);

From source file org.apache.tomee.embedded.Container.java

/**
 * @version $Rev$ $Date$
 */
public class Container implements AutoCloseable {
    static {
        // org.apache.naming

From source file org.apache.cassandra.tools.NodeProbe.java

/**
 * JMX client operations for Cassandra.
 */
public class NodeProbe implements AutoCloseable {
    private static final String fmtUrl = "service:jmx:rmi:///jndi/rmi://[%s]:%d/jmxrmi";
    private static final String ssObjName = "org.apache.cassandra.db:type=StorageService";