org.mule.util.journal.queue
Class LocalQueueTxJournalEntry

java.lang.Object
  extended by org.mule.util.journal.queue.AbstractQueueTxJournalEntry<Integer>
      extended by org.mule.util.journal.queue.LocalQueueTxJournalEntry
All Implemented Interfaces:
JournalEntry<Integer>

public class LocalQueueTxJournalEntry
extends AbstractQueueTxJournalEntry<Integer>

JournalEntry for a local queue transaction


Constructor Summary
  LocalQueueTxJournalEntry(DataInputStream inputStream, MuleContext muleContext)
           
protected LocalQueueTxJournalEntry(int txId, byte operation)
           
protected LocalQueueTxJournalEntry(int txId, byte operation, String queueName, Serializable value)
           
 
Method Summary
protected  Integer deserializeTxId(DataInputStream inputStream)
           
protected  void serializeTxId(DataOutputStream outputStream)
           
 
Methods inherited from class org.mule.util.journal.queue.AbstractQueueTxJournalEntry
getOperation, getQueueName, getTxId, getValue, isAdd, isAddFirst, isCheckpointOperation, isCommit, isPrepare, isRemove, isRollback, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalQueueTxJournalEntry

protected LocalQueueTxJournalEntry(int txId,
                                   byte operation,
                                   String queueName,
                                   Serializable value)

LocalQueueTxJournalEntry

protected LocalQueueTxJournalEntry(int txId,
                                   byte operation)

LocalQueueTxJournalEntry

public LocalQueueTxJournalEntry(DataInputStream inputStream,
                                MuleContext muleContext)
                         throws IOException
Throws:
IOException
Method Detail

deserializeTxId

protected Integer deserializeTxId(DataInputStream inputStream)
                           throws IOException
Specified by:
deserializeTxId in class AbstractQueueTxJournalEntry<Integer>
Parameters:
inputStream - stream in from which the transaction id must be deserialized
Returns:
the deserialized transaction identifier
Throws:
IOException - in case the deserialization fails

serializeTxId

protected void serializeTxId(DataOutputStream outputStream)
                      throws IOException
Specified by:
serializeTxId in class AbstractQueueTxJournalEntry<Integer>
Parameters:
outputStream - stream used to serialize the transaction identifier
Throws:
IOException - in case the serialization fails


Copyright © 2003–2014 MuleSoft, Inc.. All rights reserved.