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.grouplens.grapht.LifecycleManager.java

public class LifecycleManager implements AutoCloseable {
    private static final Logger logger = LoggerFactory.getLogger(LifecycleManager.class);
    private Deque<TeardownAction> actions = new LinkedList<TeardownAction>();

    /**
     * Register a component with the lifecycle manager.  The component will be torn down when the lifecycle manager

From source file io.github.lucaseasedup.logit.storage.Storage.java

public abstract class Storage implements AutoCloseable {
    public abstract void connect() throws IOException;

    public abstract boolean isConnected() throws IOException;

    public abstract void ping() throws IOException;

From source file org.sonar.server.rule.index.RuleMetadataIterator.java

/**
 * Scrolls over table RULES_METADATA and reads documents to populate the rule extension index type
 */
public class RuleMetadataIterator implements Iterator<RuleExtensionDoc>, AutoCloseable {

    private static final String[] FIELDS = { "r.plugin_name", "r.plugin_rule_key", "rm.organization_uuid",

From source file de.perdian.apps.dashboard.support.clients.JsonClient.java

/**
 * Abstract implementation of a client that establishes a connection to a remote
 * system and is able to retrieve JSON data from that remote system.
 *
 * @author Christian Robert
 */

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

/**
 * This implementation of {@link HttpServlet} handles all the routing for the servlet. {@link ServletService}'s are
 * added in the constructor and then delegated to by this class.
 *
 * @author Tim Roberts - Initial Contribution
 */

From source file com.googlecode.jmxtrans.model.OutputWriter.java

/**
 * Interface which defines a writer for taking jmx data and writing it out in
 * whatever format you want.
 * 
 * Note that this class uses a feature of Jackson to serialize anything that
 * implements this as a "@class". That way, when Jackson deserializes

From source file at.ac.univie.isc.asio.nest.NestContainer.java

/**
 * Wrap an {@code ApplicationContext}, which holds the components of a dataset.
 * This container <strong>must</strong> be {@link #close() closed} to release the spring context
 * and associated resources.
 */
@AutoValue

From source file uk.ac.ebi.atlas.profiles.writer.GeneProfilesTSVWriter.java

public abstract class GeneProfilesTSVWriter<T extends Profile, K, O extends ProfileStreamOptions>
        implements AutoCloseable {

    private static final String GENE_NAME_COLUMN_NAME = "Gene Name";
    private static final String GENE_ID_COLUMN_NAME = "Gene ID";
    private final CsvWriterFactory csvWriterFactory;

From source file org.fineract.module.stellar.FineractDocker.java

public class FineractDocker implements AutoCloseable {

    public static final String FINERACT_DOCKER_IMAGE = "mifos/fineract-one-tenant:latest";
    public static final String MIFOSX_CONTAINER_NAME = "fineract-one-tenant";
    public static final int PORT = 8443;

From source file com.joyent.manta.config.AuthAwareConfigContext.java

/**
 * Object for tracking configuration changes related to authentication and recreating dependent objects as needed.
 * It combines the users' configuration with the derived runtime objects needed to authenticate requests.
 * objects like the {@link ThreadLocalSigner} which needs careful lifecycle management.
 *
 * As far as users are concerned, this class is just as thread-safe as every other {@link ConfigContext} (i.e. generally