org.apache.activemq.store.amq
Class AMQTxOperation

java.lang.Object
  extended by org.apache.activemq.store.amq.AMQTxOperation

public class AMQTxOperation
extends java.lang.Object


Field Summary
static byte ACK_OPERATION_TYPE
           
static byte ADD_OPERATION_TYPE
           
static byte REMOVE_OPERATION_TYPE
           
 
Constructor Summary
AMQTxOperation()
           
AMQTxOperation(byte operationType, ActiveMQDestination destination, java.lang.Object data, Location location)
           
 
Method Summary
 java.lang.Object getData()
           
 Location getLocation()
           
 byte getOperationType()
           
 void readExternal(WireFormat wireFormat, java.io.DataInput dis)
           
 boolean replay(AMQPersistenceAdapter adapter, ConnectionContext context)
           
 void setData(java.lang.Object data)
           
 void setLocation(Location location)
           
 void setOperationType(byte operationType)
           
 void writeExternal(WireFormat wireFormat, java.io.DataOutput dos)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ADD_OPERATION_TYPE

public static final byte ADD_OPERATION_TYPE
See Also:
Constant Field Values

REMOVE_OPERATION_TYPE

public static final byte REMOVE_OPERATION_TYPE
See Also:
Constant Field Values

ACK_OPERATION_TYPE

public static final byte ACK_OPERATION_TYPE
See Also:
Constant Field Values
Constructor Detail

AMQTxOperation

public AMQTxOperation()

AMQTxOperation

public AMQTxOperation(byte operationType,
                      ActiveMQDestination destination,
                      java.lang.Object data,
                      Location location)
Method Detail

getData

public java.lang.Object getData()
Returns:
the data

setData

public void setData(java.lang.Object data)
Parameters:
data - the data to set

getLocation

public Location getLocation()
Returns:
the location

setLocation

public void setLocation(Location location)
Parameters:
location - the location to set

getOperationType

public byte getOperationType()
Returns:
the operationType

setOperationType

public void setOperationType(byte operationType)
Parameters:
operationType - the operationType to set

replay

public boolean replay(AMQPersistenceAdapter adapter,
                      ConnectionContext context)
               throws java.io.IOException
Throws:
java.io.IOException

writeExternal

public void writeExternal(WireFormat wireFormat,
                          java.io.DataOutput dos)
                   throws java.io.IOException
Throws:
java.io.IOException

readExternal

public void readExternal(WireFormat wireFormat,
                         java.io.DataInput dis)
                  throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2005-2011 FuseSource, Corp.. All Rights Reserved.