Package org.eclipse.jetty.util
Class SharedBlockingCallback.Blocker
java.lang.Object
org.eclipse.jetty.util.SharedBlockingCallback.Blocker
- All Implemented Interfaces:
Closeable,AutoCloseable,Callback,Invocable
- Enclosing class:
SharedBlockingCallback
@Deprecated(since="2021-05-27")
public class SharedBlockingCallback.Blocker
extends Object
implements Callback, Closeable
Deprecated.
The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.Callback
Callback.Completable, Callback.Completing, Callback.NestedNested classes/interfaces inherited from interface org.eclipse.jetty.util.thread.Invocable
Invocable.InvocationType -
Field Summary
Fields inherited from interface org.eclipse.jetty.util.thread.Invocable
__nonBlocking -
Method Summary
Modifier and TypeMethodDescriptionvoidblock()Deprecated.Block until the Callback has succeeded or failed and after the return leave in the state to allow reuse.voidclose()Deprecated.Check the Callback has succeeded or failed and after the return leave in the state to allow reuse.voidDeprecated.Callback invoked when the operation fails.Deprecated.voidDeprecated.Callback invoked when the operation completes.toString()Deprecated.
-
Method Details
-
getInvocationType
Deprecated.- Specified by:
getInvocationTypein interfaceInvocable- Returns:
- The InvocationType of this object
-
succeeded
public void succeeded()Deprecated.Description copied from interface:CallbackCallback invoked when the operation completes.
-
failed
Deprecated.Description copied from interface:CallbackCallback invoked when the operation fails.
-
block
Deprecated.Block until the Callback has succeeded or failed and after the return leave in the state to allow reuse. This is useful for code that wants to repeatable use a FutureCallback to convert an asynchronous API to a blocking API.- Throws:
IOException- if exception was caught during blocking, or callback was cancelled
-
close
public void close()Deprecated.Check the Callback has succeeded or failed and after the return leave in the state to allow reuse.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
toString
Deprecated.
-