Package com.azure.storage.queue.models
Class QueueMessageDecodingError
- java.lang.Object
-
- com.azure.storage.queue.models.QueueMessageDecodingError
-
public final class QueueMessageDecodingError extends Object
Contains information about message that could not be decoded.
-
-
Constructor Summary
Constructors Constructor Description QueueMessageDecodingError(QueueAsyncClient queueAsyncClient, QueueClient queueClient, QueueMessageItem queueMessageItem, PeekedMessageItem peekedMessageItem, Exception cause)
Creates newQueueMessageDecodingError
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Exception
getCause()
Gets theException
thrown at decoding attempt if present.PeekedMessageItem
getPeekedMessageItem()
Gets thePeekedMessageItem
that has been peeked and could not be decoded.QueueAsyncClient
getQueueAsyncClient()
Gets the async queue client that has received message.QueueClient
getQueueClient()
Gets the queue client that has received message.QueueMessageItem
getQueueMessageItem()
Gets theQueueMessageItem
that has been received and could not be decoded.
-
-
-
Constructor Detail
-
QueueMessageDecodingError
public QueueMessageDecodingError(QueueAsyncClient queueAsyncClient, QueueClient queueClient, QueueMessageItem queueMessageItem, PeekedMessageItem peekedMessageItem, Exception cause)
Creates newQueueMessageDecodingError
.- Parameters:
queueAsyncClient
- theQueueAsyncClient
of the queue that has received message.queueClient
- theQueueClient
of the queue that has received message.queueMessageItem
- theQueueMessageItem
that has been received and could not be decoded.peekedMessageItem
- thePeekedMessageItem
that has been peeked and could not be decoded.cause
- theException
thrown at decoding attempt if present.
-
-
Method Detail
-
getQueueAsyncClient
public QueueAsyncClient getQueueAsyncClient()
Gets the async queue client that has received message.- Returns:
- the queue client that has received message.
-
getQueueClient
public QueueClient getQueueClient()
Gets the queue client that has received message.- Returns:
- the queue client that has received message.
-
getQueueMessageItem
public QueueMessageItem getQueueMessageItem()
Gets theQueueMessageItem
that has been received and could not be decoded. The body of the message is as received, i.e. no decoding is attempted.- Returns:
- the
QueueMessageItem
that has been received and could not be decoded.
-
getPeekedMessageItem
public PeekedMessageItem getPeekedMessageItem()
Gets thePeekedMessageItem
that has been peeked and could not be decoded. The body of the message is as received, i.e. no decoding is attempted.- Returns:
- the
PeekedMessageItem
that has been peeked and could not be decoded.
-
-