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.apache.bookkeeper.meta.zk.ZKMetadataDriverBase.java

/**
 * This is a mixin class for supporting zookeeper based metadata driver.
 */
@Slf4j
public class ZKMetadataDriverBase implements AutoCloseable {

From source file com.nridge.core.ds.rdbms.SQLConnection.java

/**
 * A SQLConnection manages the connection for a JDBC connection
 * instance.  It offers a number of wrapper methods that simplify
 * the creation of a connection and abstracts the developer away
 * from the vendor specific SQL dialects.
 *

From source file com.gargoylesoftware.htmlunit.javascript.host.WebSocket.java

/**
 * A JavaScript object for {@code WebSocket}.
 *
 * @author Ahmed Ashour
 *
 * @see <a href="https://developer.mozilla.org/en/WebSockets/WebSockets_reference/WebSocket">Mozilla documentation</a>

From source file chat.viska.xmpp.Session.java

/**
 * XMPP session defining abstract concept for all implementations.
 *
 * <p>This type emits the following types of {@link EventObject}:</p>
 *
 * <ul>

From source file org.apache.storm.daemon.supervisor.Supervisor.java

public class Supervisor implements DaemonCommon, AutoCloseable {
    private static final Logger LOG = LoggerFactory.getLogger(Supervisor.class);
    private final Map<String, Object> conf;
    private final IContext sharedContext;
    private volatile boolean active;
    private final ISupervisor iSupervisor;

From source file org.openhab.io.neeo.internal.NeeoApi.java

/**
 * The class provides the API for communicating with a NEEO brain
 *
 * @author Tim Roberts - Initial Contribution
 */
@NonNullByDefault

From source file org.elasticsearch.hadoop.yarn.am.EsCluster.java

/**
 * logical cluster managing the global lifecycle for its multiple containers.
 */
class EsCluster implements AutoCloseable {

    private static final Log log = LogFactory.getLog(EsCluster.class);

From source file org.zuinnote.hadoop.office.format.common.parser.msexcel.internal.EncryptedCachedDiskStringsTable.java

/**
 * This class implements on top of Apache POI SharedStrings table a disk-based
 * gzip-compressed cached encrypted SharedStringsTable that does not require to
 * keep the full SharedStringsTable in-memory (in case of large ones). It is
 * only for the new XML-based Excel format The StaX (instead of the SAX) parser
 * is used for efficient low memory/low CPU parsing of string tables. This class

From source file org.apache.pulsar.functions.worker.SchedulerManager.java

@Slf4j
public class SchedulerManager implements AutoCloseable {

    private final WorkerConfig workerConfig;

    @Setter

From source file com.aliyun.api.gateway.demo.Client.java

/**
 * Client
 * 
 * @author qiming.wqm 2016/06/24
 */
public class Client implements AutoCloseable {