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 Link icon

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

    org.eclipse.jetty.util.IteratingCallback.Action

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

    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 Link icon

    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 Link icon

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

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

    NOOP

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

    __nonBlocking

    Fields inherited from interface org.cometd.bayeux.Promise Link icon

    NOOP
  • Constructor Summary Link icon

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary Link icon

    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 Link icon

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

    Methods inherited from class java.lang.Object Link icon

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

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

    completeWith

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

    getInvocationType

    Methods inherited from interface org.cometd.bayeux.Promise Link icon

    complete
  • Constructor Details Link icon

  • Method Details Link icon

    • process Link icon

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

      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 Link icon

      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 Link icon

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

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