Package org.eclipse.jetty.util
Class Callback.Nested
- java.lang.Object
-
- org.eclipse.jetty.util.Callback.Completing
-
- org.eclipse.jetty.util.Callback.Nested
-
- Direct Known Subclasses:
CountingCallback
,HTTP2Flusher.Entry
- Enclosing interface:
- Callback
public static class Callback.Nested extends Callback.Completing
Nested Completing Callback that completes after completing the nested callback
-
-
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
-
-
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(java.lang.Throwable x)
Callback invoked when the operation fails.Callback
getCallback()
Invocable.InvocationType
getInvocationType()
void
succeeded()
Callback invoked when the operation completes.-
Methods inherited from class org.eclipse.jetty.util.Callback.Completing
completed
-
-
-
-
Constructor Detail
-
Nested
public Nested(Callback callback)
-
Nested
public Nested(Callback.Nested nested)
-
-
Method Detail
-
getCallback
public Callback getCallback()
-
succeeded
public void succeeded()
Description copied from interface:Callback
Callback invoked when the operation completes.
- Specified by:
succeeded
in interfaceCallback
- Overrides:
succeeded
in classCallback.Completing
- See Also:
Callback.failed(Throwable)
-
failed
public void failed(java.lang.Throwable x)
Description copied from interface:Callback
Callback invoked when the operation fails.
- Specified by:
failed
in interfaceCallback
- Overrides:
failed
in classCallback.Completing
- Parameters:
x
- the reason for the operation failure
-
getInvocationType
public Invocable.InvocationType getInvocationType()
- Returns:
- The InvocationType of this object
-
-