Example usage for java.io Closeable interface-usage

List of usage examples for java.io Closeable interface-usage

Introduction

In this page you can find the example usage for java.io Closeable interface-usage.

Usage

From source file edu.cornell.med.icb.goby.alignments.AbstractAlignmentReader.java

/**
 * Abstract class for reading Goby compact alignments.
 *
 * @author Fabien Campagne
 *         Date: May 20, 2009
 *         Time: 6:23:26 PM

From source file com.esri.geoportal.geoportal.commons.geometry.GeometryService.java

/**
 * Geometry service.
 */
public class GeometryService implements Closeable {
    private final CloseableHttpClient httpClient;
    private final URL geometryServiceUrl;

From source file org.vas.mail.MailWorker.java

public class MailWorker implements Runnable, MailDispatcher, Closeable {

    private static final int MAIL_CAPACITY = 50;

    protected final Logger logger = LoggerFactory.getLogger(getClass());

From source file securitytools.nessus.NessusClient.java

/**
 * Client for accessing a Nessus server via the XMLRPC API. 
 *
 * @author Adam Parsons
 * @version 0.0.1, 04/29/14
 * @since 1.0.0

From source file org.apache.hadoop.metrics2.sink.StatsDSink.java

/**
 * A metrics sink that writes metrics to a StatsD daemon.
 * This sink will produce metrics of the form
 * '[hostname].servicename.context.name.metricname:value|type'
 * where hostname is optional. This is useful when sending to
 * a daemon that is running on the localhost and will add the

From source file com.netflix.curator.framework.recipes.queue.QueueSharder.java

/**
 * <p>
 *     A utility for shard a distributed queue.
 * </p>
 *
 * <p>

From source file org.apache.trafficcontrol.client.RestApiSession.java

@AutoValue
public abstract class RestApiSession implements Closeable {
    private static final Logger LOG = LoggerFactory.getLogger(RestApiSession.class);

    public static final ImmutableList<Header> DEFAULT_HEADERS;
    static {

From source file org.apache.hadoop.hbase.io.FSDataInputStreamWrapper.java

/**
 * Wrapper for input stream(s) that takes care of the interaction of FS and HBase checksums,
 * as well as closing streams. Initialization is not thread-safe, but normal operation is;
 * see method comments.
 */
@InterfaceAudience.Private

From source file org.kiji.schema.KijiTablePool.java

/**
 * Maintains a pool of opened KijiTables.
 *
 * <p>Instead of creating a new KijiTable instance when needed, clients may use a
 * KijiTablePool to keep a pool of opened tables for reuse. When a client asks for a
 * KijiTable, the pool first checks the cache for an already opened and available

From source file com.emc.ecs.sync.service.DbService.java

public abstract class DbService implements Closeable {
    private static final Logger log = LoggerFactory.getLogger(DbService.class);

    public static final String OPERATION_OBJECT_QUERY = "ObjectQuery";
    public static final String OPERATION_OBJECT_UPDATE = "ObjectUpdate";
    public static final String OPERATION_LIST_ERRORS = "ListErrors";