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 org.apache.http.impl.execchain.ConnectionHolder.java

/**
 * Internal connection holder.
 *
 * @since 4.3
 */
@ThreadSafe

From source file org.apache.cassandra.db.compaction.CompactionIterator.java

public class CompactionIterator extends ReducingIterator<SSTableIdentityIterator, AbstractCompactedRow>
        implements Closeable, CompactionInfo.Holder {
    private static Logger logger = LoggerFactory.getLogger(CompactionIterator.class);

    public static final int FILE_BUFFER_SIZE = 1024 * 1024;

From source file org.bdval.signalquality.BaseSignalQualityCalculator.java

/**
 * Abstract class for signal quality calculator classes.
 * @author Kevin Dorff
 */
public class BaseSignalQualityCalculator implements Closeable {

From source file io.druid.indexing.kafka.test.TestBroker.java

public class TestBroker implements Closeable {
    private final static Random RANDOM = new Random();

    private final String zookeeperConnect;
    private final File directory;
    private final boolean directoryCleanup;

From source file de.hpi.fgis.hdrs.client.Client.java

/**
 * <p>The HDRS client application interface.  Applications must use this class
 * to read/write triples to/from a HDRS store.
 * 
 * <p>The client class also provides some advanced features to provide client
 * applications with the index segmentation or location of segments.

From source file org.apache.gobblin.metastore.util.DatabaseJobHistoryStoreSchemaManager.java

/**
 * A utility class for managing the {@link DatabaseJobHistoryStore} schema.
 *
 * @author Joel Baranick
 */
public class DatabaseJobHistoryStoreSchemaManager implements Closeable {

From source file org.apache.pdfbox.io.ScratchFile.java

/**
 * Implements a memory page handling mechanism as base for creating (multiple)
 * {@link RandomAccess} buffers each having its set of pages (implemented by
 * {@link ScratchFileBuffer}). A buffer is created calling {@link #createBuffer()}.
 * 
 * <p>Pages can be stored in main memory or in a temporary file. A mixed mode

From source file com.clxcommunications.xms.ApiHttpAsyncClient.java

/**
 * An asynchronous HTTP client used in API connections. It is configured in a
 * way suitable for communicating with XMS and is therefore most applicable for
 * communicating with a single HTTP host.
 * <p>
 * It is in most cases sufficient to let {@link ApiConnection} create and manage

From source file org.kurento.basicroom.RoomParticipant.java

/**
 * @author Ivan Gracia (izanmail@gmail.com)
 * @author Micael Gallego (micael.gallego@gmail.com)
 * @since 1.0.0
 */
public class RoomParticipant implements Closeable {

From source file org.largecollections.CacheMap.java

/**
 * CacheMap is a true implementation of Map. Unlike FastHashMap which operates
 * about 30% faster on put() and remove() CacheMap returns the correct value for
 * size() function. OffHeapMap provides a heuristic value for size which is
 * compensated by its faster performance.
 */