Package org.eclipse.jetty.util
Class SharedBlockingCallback.Blocker
- java.lang.Object
-
- org.eclipse.jetty.util.SharedBlockingCallback.Blocker
-
- Enclosing class:
- SharedBlockingCallback
@Deprecated(since="2021-05-27") public class SharedBlockingCallback.Blocker extends java.lang.Object implements Callback, java.io.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.Nested
-
Nested 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
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
block()
Deprecated.Block until the Callback has succeeded or failed and after the return leave in the state to allow reuse.void
close()
Deprecated.Check the Callback has succeeded or failed and after the return leave in the state to allow reuse.void
failed(java.lang.Throwable cause)
Deprecated.Callback invoked when the operation fails.Invocable.InvocationType
getInvocationType()
Deprecated.void
succeeded()
Deprecated.Callback invoked when the operation completes.java.lang.String
toString()
Deprecated.
-
-
-
Method Detail
-
getInvocationType
public Invocable.InvocationType getInvocationType()
Deprecated.- Specified by:
getInvocationType
in interfaceInvocable
- Returns:
- The InvocationType of this object
-
succeeded
public void succeeded()
Deprecated.Description copied from interface:Callback
Callback invoked when the operation completes.
- Specified by:
succeeded
in interfaceCallback
- See Also:
Callback.failed(Throwable)
-
failed
public void failed(java.lang.Throwable cause)
Deprecated.Description copied from interface:Callback
Callback invoked when the operation fails.
-
block
public void block() throws java.io.IOException
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:
java.io.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:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toString
in classjava.lang.Object
-
-