public final class DataOverrunException extends JMSException
DataOverrunException
is
thrown by a multicast session
when the number of messages received by the session,
but not yet delivered to the messageListener, exceeds
the maximum number of messages allowed for the session.Modifier and Type | Field and Description |
---|---|
private java.lang.String |
correlationId |
private javax.jms.Destination |
destination |
private java.lang.String |
messageId |
(package private) static long |
serialVersionUID |
Constructor and Description |
---|
DataOverrunException(java.lang.String reason,
java.lang.String messageId,
java.lang.String correlationId,
javax.jms.Destination destination)
Construct a
DataOverrunException that provides
a description of the exception. |
DataOverrunException(java.lang.String reason,
java.lang.String errorCode,
java.lang.String messageId,
java.lang.String correlationId,
javax.jms.Destination destination)
Constructs a
DataOverrunException that provides an error code
and a description of the exception. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getJMSCorrelationId()
Returns the correlation id for messages lost when the maximum number of messages allowed for the session is exceeded.
|
javax.jms.Destination |
getJMSDestination()
Returns the destination that sent a message when the maximum number of messages allowed for the session is exceeded.
|
java.lang.String |
getJMSMessageId()
Returns the message id for messages lost when the maximum number of messages allowed for the session is exceeded.
|
boolean |
isInformational()
Internal use only
|
getLinkedException, setLinkedException
static final long serialVersionUID
private java.lang.String messageId
private java.lang.String correlationId
private javax.jms.Destination destination
public DataOverrunException(java.lang.String reason, java.lang.String errorCode, java.lang.String messageId, java.lang.String correlationId, javax.jms.Destination destination)
DataOverrunException
that provides an error code
and a description of the exception.reason
- a description of the exception.errorCode
- a string specifying the vendor specific error code.messageId
- the messageId of the message that was lost.correlationId
- the correlationId of the message that was lost.destination
- the destination that sent the message.public DataOverrunException(java.lang.String reason, java.lang.String messageId, java.lang.String correlationId, javax.jms.Destination destination)
DataOverrunException
that provides
a description of the exception. The error code
defaults to null.reason
- a description of the exception.messageId
- the messageId of the message that was lost.correlationId
- the correlationId of the message that was lost.destination
- the name of the destination that sent the message.public java.lang.String getJMSMessageId()
public java.lang.String getJMSCorrelationId()
public javax.jms.Destination getJMSDestination()
public boolean isInformational()
isInformational
in class JMSException