Class AbstractHttpTransport.Writer

java.lang.Object
org.eclipse.jetty.util.IteratingCallback
org.cometd.server.http.AbstractHttpTransport.Writer
All Implemented Interfaces:
Promise<Void>, org.eclipse.jetty.util.Callback, org.eclipse.jetty.util.thread.Invocable
Enclosing class:
AbstractHttpTransport

protected class AbstractHttpTransport.Writer extends org.eclipse.jetty.util.IteratingCallback implements Promise<Void>
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.eclipse.jetty.util.IteratingCallback

    org.eclipse.jetty.util.IteratingCallback.Action

    Nested classes/interfaces inherited from interface org.eclipse.jetty.util.Callback

    org.eclipse.jetty.util.Callback.Completable, org.eclipse.jetty.util.Callback.Completing, org.eclipse.jetty.util.Callback.Nested

    Nested classes/interfaces inherited from interface org.eclipse.jetty.util.thread.Invocable

    org.eclipse.jetty.util.thread.Invocable.Callable, org.eclipse.jetty.util.thread.Invocable.InvocationType, org.eclipse.jetty.util.thread.Invocable.ReadyTask, org.eclipse.jetty.util.thread.Invocable.Task

    Nested classes/interfaces inherited from interface org.cometd.bayeux.Promise

    Promise.Completable<S>, Promise.Wrapper<W>
  • Field Summary

    Fields inherited from interface org.eclipse.jetty.util.Callback

    NOOP

    Fields inherited from interface org.eclipse.jetty.util.thread.Invocable

    __nonBlocking

    Fields inherited from interface org.cometd.bayeux.Promise

    NOOP
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    fail(Throwable failure)
    Callback to invoke when the operation fails.
    protected void
     
    protected void
     
    protected org.eclipse.jetty.util.IteratingCallback.Action
     
    void
    succeed(Void result)
    Callback to invoke when the operation succeeds.

    Methods inherited from class org.eclipse.jetty.util.IteratingCallback

    abort, close, failed, isAborted, isClosed, isFailed, isSucceeded, iterate, onSuccess, reset, succeeded, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.eclipse.jetty.util.Callback

    completeWith

    Methods inherited from interface org.eclipse.jetty.util.thread.Invocable

    getInvocationType

    Methods inherited from interface org.cometd.bayeux.Promise

    complete
  • Constructor Details

  • Method Details

    • process

      protected org.eclipse.jetty.util.IteratingCallback.Action process() throws Throwable
      Specified by:
      process in class org.eclipse.jetty.util.IteratingCallback
      Throws:
      Throwable
    • succeed

      public void succeed(Void result)
      Description copied from interface: Promise

      Callback to invoke when the operation succeeds.

      Specified by:
      succeed in interface Promise<Void>
      Parameters:
      result - the result
      See Also:
    • fail

      public void fail(Throwable failure)
      Description copied from interface: Promise

      Callback to invoke when the operation fails.

      Specified by:
      fail in interface Promise<Void>
      Parameters:
      failure - the operation failure
    • onCompleteSuccess

      protected void onCompleteSuccess()
      Overrides:
      onCompleteSuccess in class org.eclipse.jetty.util.IteratingCallback
    • onCompleteFailure

      protected void onCompleteFailure(Throwable failure)
      Overrides:
      onCompleteFailure in class org.eclipse.jetty.util.IteratingCallback