Package org.eclipse.jetty.util
Class Callback.Nested
- java.lang.Object
-
- org.eclipse.jetty.util.Callback.Nested
-
- All Implemented Interfaces:
Callback
- Direct Known Subclasses:
CountingCallback
- Enclosing interface:
- Callback
public static class Callback.Nested extends Object implements Callback
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.Callback
Callback.Adapter, Callback.Nested, Callback.NonBlocking
-
-
Constructor Summary
Constructors Constructor Description Nested(Callback callback)
Nested(Callback.Nested nested)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
failed(Throwable x)
Callback invoked when the operation fails.boolean
isNonBlocking()
void
succeeded()
Callback invoked when the operation completes.
-
-
-
Constructor Detail
-
Nested
public Nested(Callback callback)
-
Nested
public Nested(Callback.Nested nested)
-
-
Method Detail
-
succeeded
public void succeeded()
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(Throwable x)
Description copied from interface:Callback
Callback invoked when the operation fails.
-
isNonBlocking
public boolean isNonBlocking()
- Specified by:
isNonBlocking
in interfaceCallback
- Returns:
- True if the callback is known to never block the caller
-
-