Class SharedBlockingCallback

  • Direct Known Subclasses:
    BlockingWriteCallback

    @Deprecated(since="2021-05-27")
    public class SharedBlockingCallback
    extends java.lang.Object
    Deprecated.
    The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
    Provides a reusable Callback that can block the thread while waiting to be completed.

    A typical usage pattern is:

      void someBlockingCall(Object... args) throws IOException
      {
          try(Blocker blocker = sharedBlockingCallback.acquire())
          {
              someAsyncCall(args, blocker);
              blocker.block();
          }
      }
      
    • Constructor Detail

      • SharedBlockingCallback

        public SharedBlockingCallback()
        Deprecated.
    • Method Detail

      • fail

        public boolean fail​(java.lang.Throwable cause)
        Deprecated.