Class AbstractStreamWriter.DisposeBufferCompletionHandler

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void cancelled()
      The operation was cancelled.
      void completed​(java.lang.Object result)
      The operation was completed.
      protected void disposeBuffer()  
      void failed​(java.lang.Throwable throwable)
      The operation was failed.
      void updated​(java.lang.Object result)
      The callback method may be called, when there is some progress in operation execution, but it is still not completed
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DisposeBufferCompletionHandler

        public DisposeBufferCompletionHandler​(Buffer buffer)
    • Method Detail

      • failed

        public void failed​(java.lang.Throwable throwable)
        Description copied from interface: CompletionHandler
        The operation was failed.
        Specified by:
        failed in interface CompletionHandler
        Parameters:
        throwable - error, which occurred during operation execution
      • completed

        public void completed​(java.lang.Object result)
        Description copied from interface: CompletionHandler
        The operation was completed.
        Specified by:
        completed in interface CompletionHandler
        Parameters:
        result - the operation result Please note, for performance reasons the result object might be recycled after returning from the completed method. So it's not guaranteed that using of the result object is safe outside this method's scope.
      • updated

        public void updated​(java.lang.Object result)
        Description copied from interface: CompletionHandler
        The callback method may be called, when there is some progress in operation execution, but it is still not completed
        Specified by:
        updated in interface CompletionHandler
        Parameters:
        result - the current result Please note, for performance reasons the result object might be recycled after returning from the updated method. So it's not guaranteed that using of the result object is safe outside this method's scope.
      • disposeBuffer

        protected void disposeBuffer()