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 svnserver.context.Context.java

/**
 * Base context object.
 *
 * @author Artem V. Navrotskiy <bozaro@users.noreply.github.com>
 */
@ThreadSafe

From source file com.linkedin.kafka.clients.utils.tests.EmbeddedBroker.java

public class EmbeddedBroker implements AutoCloseable {
    private final static Class<?> KAFKA_CONFIG_CLASS;
    private final static Class<?> KAFKA_SERVER_CLASS;
    private final static Class<?> SCALA_OPTION_CLASS;
    private final static Class<?> SCALA_SEQ_CLASS;
    private final static Class<?> SCALA_ARRAY_BUFFER_CLASS;

From source file edu.cornell.mannlib.vitro.webapp.rdfservice.impl.logging.RDFServiceLogger.java

/**
 * Writes the log message for the LoggingRDFService.
 * 
 * If not enabled, or if the logging level is insufficient, this does nothing.
 * 
 * If enabled, it checks for restrictions. If there is a restriction on the call

From source file io.fluo.api.client.FluoClient.java

/**
 * Client interface for Fluo. Fluo clients will have shared resources used by all objects created by the client. Therefore, {@link FluoClient#close()} must
 * called when you are finished using the client.
 */
public interface FluoClient extends AutoCloseable {

From source file org.echocat.jomon.spring.application.Application.java

public interface Application extends AutoCloseable {

    public void init();

    @Nonnull
    public ApplicationContext getApplicationContext();

From source file com.commercehub.dropwizard.mongeez.CloseableMongeez.java

public class CloseableMongeez extends Mongeez implements AutoCloseable {

    private static final String DEFAULT_MONGEEZ_FILE = "mongeez.xml";

    private ManagedMongoClient mongoClient;

From source file com.twosigma.beaker.kdb.KdbClient.java

/**
 * Wraps kx.c to a) manage reconnections etc. b) hide the horrible.
 */
public class KdbClient implements AutoCloseable {
    // kdb commands.
    public static final String PID_CMD = ".z.i";

From source file org.application.backupsync.client.net.Serve.java

public class Serve implements AutoCloseable {

    private Integer port;
    private ServerSocket socket;

    public Serve(Integer port) {

From source file org.dimitrovchi.conf.service.AbstractService.java

/**
 * Abstract demo service.
 * @author Dmitry Ovchinnikov
 * @param <P> Service parameters container type.
 */
public abstract class AbstractService<P extends CommonServiceParams> implements AutoCloseable {

From source file io.pravega.segmentstore.storage.impl.bookkeeper.ZooKeeperServiceRunner.java

/**
 * Helps run ZooKeeper Server in process.
 */
@RequiredArgsConstructor
@Slf4j
public class ZooKeeperServiceRunner implements AutoCloseable {