Class BlockingWriteCallback.WriteBlocker

java.lang.Object
org.eclipse.jetty.websocket.common.BlockingWriteCallback.WriteBlocker
All Implemented Interfaces:
AutoCloseable, org.eclipse.jetty.util.Callback, org.eclipse.jetty.util.thread.Invocable, WriteCallback
Enclosing class:
BlockingWriteCallback

public static class BlockingWriteCallback.WriteBlocker extends Object implements WriteCallback, org.eclipse.jetty.util.Callback, AutoCloseable
  • Nested Class Summary

    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.InvocationType
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final org.eclipse.jetty.util.SharedBlockingCallback.Blocker
     

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

    NOOP

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

    __nonBlocking
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    WriteBlocker(org.eclipse.jetty.util.SharedBlockingCallback.Blocker blocker)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
     
    void
     
    org.eclipse.jetty.util.thread.Invocable.InvocationType
     
    void
     
    void
    Callback invoked when the write fails.
    void
    Callback invoked when the write completes.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • blocker

      private final org.eclipse.jetty.util.SharedBlockingCallback.Blocker blocker
  • Constructor Details

    • WriteBlocker

      protected WriteBlocker(org.eclipse.jetty.util.SharedBlockingCallback.Blocker blocker)
  • Method Details

    • getInvocationType

      public org.eclipse.jetty.util.thread.Invocable.InvocationType getInvocationType()
      Specified by:
      getInvocationType in interface org.eclipse.jetty.util.thread.Invocable
    • writeFailed

      public void writeFailed(Throwable x)
      Description copied from interface: WriteCallback

      Callback invoked when the write fails.

      Specified by:
      writeFailed in interface WriteCallback
      Parameters:
      x - the reason for the write failure
    • writeSuccess

      public void writeSuccess()
      Description copied from interface: WriteCallback

      Callback invoked when the write completes.

      Specified by:
      writeSuccess in interface WriteCallback
      See Also:
    • succeeded

      public void succeeded()
      Specified by:
      succeeded in interface org.eclipse.jetty.util.Callback
    • failed

      public void failed(Throwable x)
      Specified by:
      failed in interface org.eclipse.jetty.util.Callback
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • block

      public void block() throws IOException
      Throws:
      IOException