List of usage examples for java.lang AutoCloseable interface-usage
From source file io.pravega.service.storage.impl.bookkeeper.BookKeeperServiceRunner.java
/** * Helper class that starts BookKeeper in-process. */ @Slf4j @Builder public class BookKeeperServiceRunner implements AutoCloseable {
From source file at.ac.univie.isc.asio.spring.ContextPropagator.java
/** * Store a spring request context and allow publishing it on another thread. */ public final class ContextPropagator implements AutoCloseable { private static final Logger log = getLogger(ContextPropagator.class);
From source file com.mgmtp.perfload.perfalyzer.util.ChannelManager.java
/**
* Utility class for managing channels. A channel manager is always based on a destination directory
* and uses a {@link FileNamingStrategy} in order to create files it opens channels for.
*
* @author rnaegele
*/
From source file com.intel.podm.rest.ReplicatedStreamHttpServletResponse.java
public class ReplicatedStreamHttpServletResponse extends HttpServletResponseWrapper implements AutoCloseable { private final ByteArrayOutputStream byteArrayOutputStream; private final PrintStream printStream; ReplicatedStreamHttpServletResponse(HttpServletResponse response) { super(response);
From source file com.blackducksoftware.ohcount4j.SourceFile.java
public class SourceFile implements AutoCloseable { private final String path; private final Reader reader;
From source file io.apiman.manager.api.es.util.XContentBuilder.java
/**
* Mimics the ES class of the same name. For more details please see
* {@link XContentFactory}.
*
* @author ewittman
*/
From source file org.phoenicis.tools.files.DirectoryWatcher.java
abstract class DirectoryWatcher<T> implements AutoCloseable { protected final Path observedDirectory; private final WatchService watcher; private Consumer<T> changeConsumer; DirectoryWatcher(ExecutorService executorService, Path observedDirectory) {
From source file com.javacreed.api.secureproperties.examples.example1.Example.java
public class Example implements AutoCloseable { private static final Logger LOGGER = LoggerFactory.getLogger(Example.class); public static void main(final String[] args) throws Exception { try (Example example = new Example()) {
From source file me.camerongray.teamlocker.server.Database.java
/** * * @author camerong */ public class Database implements AutoCloseable { private Connection connection;
From source file org.apache.bookkeeper.mledger.offload.Offloaders.java
@Slf4j @Data public class Offloaders implements AutoCloseable { private final List<Pair<NarClassLoader, LedgerOffloaderFactory>> offloaders = new ArrayList<>();