public class CallbackNotification extends Notification
CountDownCallback
. The
CountDownCallback
is not persistent and is not transmitted to a
remote destination. If sent to a remote destination, the
CountDownCallback
should be decremented either after the
notification has been successfully transmitted, or if a transmission error
has been raised. A CountDownCallback
can be transmitted in
several CallbackNotification
instances. In that case it is
incremented and decremented once for every CallbackNotification
.Modifier and Type | Field and Description |
---|---|
private CountDownCallback |
countDownCallback |
private static long |
serialVersionUID
define serialVersionUID for interoperability, fix with 5.15.0 value
|
deadNotificationAgentId, detachable, detached, expiration, messageId, persistent, priority
BOOLEAN_ENCODED_SIZE, BYTE_ENCODED_SIZE, DOUBLE_ENCODED_SIZE, FLOAT_ENCODED_SIZE, INT_ENCODED_SIZE, LONG_ENCODED_SIZE, SHORT_ENCODED_SIZE
Constructor and Description |
---|
CallbackNotification() |
Modifier and Type | Method and Description |
---|---|
void |
done()
Called if this
CallbackNotification is successfully processed. |
void |
failed(Throwable error)
Called if this
CallbackNotification raises an error. |
boolean |
hasCallback()
Returns
true if a CountDownCallback is
transmitted, false otherwise. |
void |
passCallback(CallbackNotification not)
Passes the
CountDownCallback to the specified
CallbackNotification . |
void |
setCountDownCallback(CountDownCallback countDownCallback)
Sets the
CountDownCallback to be transmitted by this
CallbackNotification . |
clone, decode, encode, getContext, getDeadNotificationAgentId, getEncodableClassId, getEncodedSize, getExpiration, getMessageId, getPriority, isPersistent, setContext, setDeadNotificationAgentId, setExpiration, setPriority, toString, toString
private static final long serialVersionUID
private transient CountDownCallback countDownCallback
public boolean hasCallback()
true
if a CountDownCallback
is
transmitted, false
otherwise.true
if a CountDownCallback
is
transmitted, false
otherwisepublic void passCallback(CallbackNotification not)
CountDownCallback
to the specified
CallbackNotification
.not
- the CallbackNotification
to be assigned with the
CountDownCallback
owned by this
CallbackNotification
public void setCountDownCallback(CountDownCallback countDownCallback)
CountDownCallback
to be transmitted by this
CallbackNotification
.the
- CountDownCallback
to transmitpublic void done()
CallbackNotification
is successfully processed.public void failed(Throwable error)
CallbackNotification
raises an error.error
- the error that has been raisedCopyright © 2019 ScalAgent D.T.. All rights reserved.