Class FastContentWriter

  • All Implemented Interfaces:
    com.google.common.util.concurrent.ListenableFuture<Boolean>, AutoCloseable, Future<Boolean>

    public class FastContentWriter
    extends Object
    implements com.google.common.util.concurrent.ListenableFuture<Boolean>, AutoCloseable

    This class provides a non-blocking, awaitable write-interface to a ContentChannel. The ListenableFuture<Boolean> interface can be used to await the asynchronous completion of all pending operations. Any asynchronous failure will be rethrown when calling either of the get() methods on this class.

    Please notice that the Future implementation of this class will NEVER complete unless close() has been called; please use try-with-resources to ensure that close() is called.

    Author:
    Simon Thoresen Hult