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 voidblock()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.voidfailed(java.lang.Throwable cause)Deprecated.Callback invoked when the operation fails.Invocable.InvocationTypegetInvocationType()Deprecated.voidsucceeded()Deprecated.Callback invoked when the operation completes.java.lang.StringtoString()Deprecated. 
 - 
 
- 
- 
Method Detail
- 
getInvocationType
public Invocable.InvocationType 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.
- Specified by:
 succeededin interfaceCallback- See Also:
 Callback.failed(Throwable)
 
- 
failed
public void failed(java.lang.Throwable cause)
Deprecated.Description copied from interface:CallbackCallback invoked when the operation fails.
 
- 
block
public void block() throws java.io.IOExceptionDeprecated.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:
 closein interfacejava.lang.AutoCloseable- Specified by:
 closein interfacejava.io.Closeable
 
- 
toString
public java.lang.String toString()
Deprecated.- Overrides:
 toStringin classjava.lang.Object
 
 - 
 
 -