T
- type of the entry identifierpublic abstract class AbstractQueueTxJournalEntry<T> extends Object implements JournalEntry<T>
JournalEntry
.Constructor and Description |
---|
AbstractQueueTxJournalEntry(DataInputStream inputStream,
MuleContext muleContext) |
AbstractQueueTxJournalEntry(T txId,
byte operation) |
AbstractQueueTxJournalEntry(T txId,
byte operation,
String queueName,
Serializable value) |
Modifier and Type | Method and Description |
---|---|
protected abstract T |
deserializeTxId(DataInputStream inputStream) |
byte |
getOperation() |
String |
getQueueName() |
T |
getTxId() |
Serializable |
getValue() |
boolean |
isAdd() |
boolean |
isAddFirst() |
static boolean |
isCheckpointOperation(byte operationAsByte) |
boolean |
isCommit() |
boolean |
isPrepare() |
boolean |
isRemove() |
boolean |
isRollback() |
protected abstract void |
serializeTxId(DataOutputStream outputStream) |
void |
write(DataOutputStream outputStream,
MuleContext muleContext) |
public AbstractQueueTxJournalEntry(T txId, byte operation, String queueName, Serializable value)
public AbstractQueueTxJournalEntry(T txId, byte operation)
public AbstractQueueTxJournalEntry(DataInputStream inputStream, MuleContext muleContext) throws IOException
IOException
public void write(DataOutputStream outputStream, MuleContext muleContext)
public static boolean isCheckpointOperation(byte operationAsByte)
public Serializable getValue()
public String getQueueName()
public T getTxId()
getTxId
in interface JournalEntry<T>
public byte getOperation()
public boolean isCommit()
public boolean isRollback()
public boolean isRemove()
public boolean isAdd()
public boolean isAddFirst()
public boolean isPrepare()
protected abstract T deserializeTxId(DataInputStream inputStream) throws IOException
inputStream
- stream in from which the transaction id must be deserializedIOException
- in case the deserialization failsprotected abstract void serializeTxId(DataOutputStream outputStream) throws IOException
outputStream
- stream used to serialize the transaction identifierIOException
- in case the serialization failsCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.