public class CountDownCallback extends Object
CountDownCallback
is
assigned to a CallbackNotification
and decremented after the
CallbackNotification
has been successfully processed, or after
an error has been raised.Modifier and Type | Field and Description |
---|---|
private Callback |
callback |
private AtomicInteger |
countDown |
private List<Throwable> |
errors |
Constructor and Description |
---|
CountDownCallback(Callback callback)
Creates a callback by specifying the
Callback to invoke. |
Modifier and Type | Method and Description |
---|---|
(package private) void |
done() |
(package private) void |
failed(Throwable error) |
(package private) void |
incrementAndGet() |
private AtomicInteger countDown
private Callback callback
public CountDownCallback(Callback callback)
Callback
to invoke.
Not permitted in an Agent
.callback
- the callback to invokeRuntimeException
- if called by an Agent
void incrementAndGet()
void done()
void failed(Throwable error)
Copyright © 2021 ScalAgent D.T.. All rights reserved.