public class ListenerException extends Exception
Listener callback API. If an onMessage
or onStatus callback cannot be completed successfully, the
implementer of the Listener may throw a ListenerException.
If the ListenerException.isRetriable is true, then delivery of the
message or status may be retried. Otherwise delivery of the message
or status will be aborted and a failure status will be generated
where appropriate.| Constructor and Description |
|---|
ListenerException()
Construct a ListenerException.
|
ListenerException(String message)
Construct a ListenerException with a message.
|
ListenerException(String message,
boolean retriable)
Construct a ListenerException with a message and a flag
indicating whether delivery of the message or status should be
retried or not.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isRetriable()
Return an indicator of whether the operation that led to the
exception should be retried or not.
|
void |
setRetriable(boolean retriable)
Set the retriable flag for this exception after construction.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ListenerException()
ListenerException(String, boolean) to indicate that
delivery should not be retried.public ListenerException(String message)
ListenerException(String, boolean) to indicate that
delivery should not be retried.message - public ListenerException(String message, boolean retriable)
message - retriable - public boolean isRetriable()
public void setRetriable(boolean retriable)
retriable - Copyright © 2009,2013 Oracle and/or its affiliates. All rights reserved.