Class BlockingWriteCallback.WriteBlocker

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

    public static class BlockingWriteCallback.WriteBlocker
    extends java.lang.Object
    implements WriteCallback, org.eclipse.jetty.util.Callback, java.lang.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 org.eclipse.jetty.util.SharedBlockingCallback.Blocker 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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void block()  
      void close()  
      void failed​(java.lang.Throwable x)  
      org.eclipse.jetty.util.thread.Invocable.InvocationType getInvocationType()  
      void succeeded()  
      void writeFailed​(java.lang.Throwable x)
      Callback invoked when the write fails.
      void writeSuccess()
      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 Detail

      • blocker

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

      • WriteBlocker

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

      • 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​(java.lang.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
      • succeeded

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

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

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

        public void block()
                   throws java.io.IOException
        Throws:
        java.io.IOException