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.ObjectDeprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.Provides a reusableCallbackthat 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 classSharedBlockingCallback.BlockerDeprecated.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.Blockeracquire()Deprecated.booleanfail(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.
-
-