Class ReplayableWorkItem<T>
- java.lang.Object
-
- com.microsoft.azure.eventhubs.impl.WorkItem<T>
-
- com.microsoft.azure.eventhubs.impl.ReplayableWorkItem<T>
-
public class ReplayableWorkItem<T> extends WorkItem<T>
-
-
Constructor Summary
Constructors Constructor Description ReplayableWorkItem(byte[] amqpMessage, int encodedMessageSize, int messageFormat, CompletableFuture<T> completableFuture, TimeoutTracker timeout)
ReplayableWorkItem(byte[] amqpMessage, int encodedMessageSize, int messageFormat, CompletableFuture<T> completableFuture, Duration timeout)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearMessage()
int
getEncodedMessageSize()
Exception
getLastKnownException()
byte[]
getMessage()
int
getMessageFormat()
CompletableFuture<?>
getTimeoutTask()
boolean
isWaitingForAck()
void
setLastKnownException(Exception exception)
void
setTimeoutTask(CompletableFuture<?> timeoutTask)
void
setWaitingForAck()
-
Methods inherited from class com.microsoft.azure.eventhubs.impl.WorkItem
getTimeoutTracker, getWork
-
-
-
-
Constructor Detail
-
ReplayableWorkItem
public ReplayableWorkItem(byte[] amqpMessage, int encodedMessageSize, int messageFormat, CompletableFuture<T> completableFuture, Duration timeout)
-
ReplayableWorkItem
public ReplayableWorkItem(byte[] amqpMessage, int encodedMessageSize, int messageFormat, CompletableFuture<T> completableFuture, TimeoutTracker timeout)
-
-
Method Detail
-
getMessage
public byte[] getMessage()
-
clearMessage
public void clearMessage()
-
getEncodedMessageSize
public int getEncodedMessageSize()
-
getMessageFormat
public int getMessageFormat()
-
getLastKnownException
public Exception getLastKnownException()
-
setLastKnownException
public void setLastKnownException(Exception exception)
-
getTimeoutTask
public CompletableFuture<?> getTimeoutTask()
-
setTimeoutTask
public void setTimeoutTask(CompletableFuture<?> timeoutTask)
-
setWaitingForAck
public void setWaitingForAck()
-
isWaitingForAck
public boolean isWaitingForAck()
-
-