Package org.eclipse.jetty.util
Class SharedBlockingCallback
java.lang.Object
org.eclipse.jetty.util.SharedBlockingCallback
Deprecated.
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(); } }
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
Deprecated.A Closeable Callback. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionacquire()
Deprecated.boolean
Deprecated.protected void
Deprecated.
-
Constructor Details
-
SharedBlockingCallback
public SharedBlockingCallback()Deprecated.
-
-
Method Details
-
acquire
Deprecated.- Throws:
IOException
-
fail
Deprecated.
-
Blocker.Shared.callback()