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.arrow.vector.ipc.JsonFileWriter.java

public class JsonFileWriter implements AutoCloseable {

    public static final class JSONWriteConfig {
        private final boolean pretty;

        private JSONWriteConfig(boolean pretty) {

From source file org.apache.parquet.hadoop.DirectCodecFactory.java

/**
 * Factory to produce compressors and decompressors that operate on java
 * direct memory, without requiring a copy into heap memory (where possible).
 */
class DirectCodecFactory extends CodecFactory implements AutoCloseable {
    private static final Logger LOG = LoggerFactory.getLogger(DirectCodecFactory.class);

From source file org.opendaylight.vpnservice.itm.impl.ITMManager.java

public class ITMManager implements AutoCloseable {
    private static final Logger LOG = LoggerFactory.getLogger(ITMManager.class);

    private final DataBroker broker;
    private IMdsalApiManager mdsalManager;
    private NotificationPublishService notificationPublishService;

From source file com.vmware.loginsightapi.LogInsightClient.java

/**
 * LogInsight client class providing mechanisms to connect to LogInsight, Query
 * loginsight and ingest messages to loginsight
 * 
 */
public class LogInsightClient implements AutoCloseable {

From source file org.apache.kudu.client.MiniKuduCluster.java

/**
 * Utility class to start and manipulate Kudu clusters. Relies on being IN the Kudu source code with
 * both the kudu-master and kudu-tserver binaries already compiled. {@link BaseKuduTest} should be
 * extended instead of directly using this class in almost all cases.
 */
public class MiniKuduCluster implements AutoCloseable {

From source file org.echocat.jemoni.jmx.support.ServletHealth.java

public class ServletHealth implements AutoCloseable, Filter, Iterable<Entry<Pattern, ScopeMapping>> {

    public static final String MAPPING_INIT_ATTRIBUTE = "mapping";
    public static final String REGISTRY_REF_INIT_ATTRIBUTE = "registry-ref";

    public static final String EXCLUDES_HOSTS = "excludeHosts";

From source file io.druid.extension.lucene.LuceneAppenderatorTester.java

/**
 */
public class LuceneAppenderatorTester implements AutoCloseable {
    public static final QueryWatcher NOOP_QUERYWATCHER = new QueryWatcher() {
        @Override
        public void registerQuery(Query query, ListenableFuture future) {

From source file kina.config.GenericCassandraKinaConfig.java

/**
 * Base class for all config implementations providing default implementations for methods
 * defined in {@link KinaConfig}.
 */
public abstract class GenericCassandraKinaConfig<T> implements CassandraKinaConfig<T>, AutoCloseable {
    private static final Logger LOG = Logger.getLogger("kina.config.GenericCassandraKinaConfig");

From source file org.apache.pulsar.functions.runtime.JavaInstanceMain.java

/**
 * A function container implemented using java thread.
 */
@Slf4j
public class JavaInstanceMain implements AutoCloseable {
    @Parameter(names = "--function_details", description = "Function details json\n", required = true)

From source file io.mapzone.controller.plugincat.PluginCatalog.java

/**
 * 
 *
 * @author Falko Brutigam
 */
public class PluginCatalog extends CatalogBase implements AutoCloseable {