Package org.eclipse.jetty.util
Class SharedBlockingCallback
- java.lang.Object
-
- org.eclipse.jetty.util.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 reusableCallback
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(); } }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
SharedBlockingCallback.Blocker
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
-
Constructor Summary
Constructors Constructor Description SharedBlockingCallback()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description SharedBlockingCallback.Blocker
acquire()
Deprecated.boolean
fail(java.lang.Throwable cause)
Deprecated.
-
-
-
Method Detail
-
acquire
public SharedBlockingCallback.Blocker acquire() throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
fail
public boolean fail(java.lang.Throwable cause)
Deprecated.
-
-