org.jgroups.blocks

Class ReplicationData

Implemented Interfaces:
Externalizable

public class ReplicationData
extends java.lang.Object
implements Externalizable

Class used for data exchange by ReplicationManager and ReplicationReceiver.

Author:
Bela Ban

Field Summary

static int
COMMIT
static int
ROLLBACK
static int
SEND

Constructor Summary

ReplicationData()
ReplicationData(int type, byte[] data, Xid transaction, byte[] lock_info, long lock_acquisition_timeout, long lock_lease_timeout, boolean use_locks)

Method Summary

byte[]
getData()
long
getLockAcquisitionTimeout()
byte[]
getLockInfo()
long
getLockLeaseTimeout()
Xid
getTransaction()
int
getType()
void
readExternal(ObjectInput in)
String
toString()
static String
typeToString(int t)
boolean
useLocks()
void
writeExternal(ObjectOutput out)

Field Details

COMMIT

public static final int COMMIT

Field Value:
2


ROLLBACK

public static final int ROLLBACK

Field Value:
3


SEND

public static final int SEND

Field Value:
1

Constructor Details

ReplicationData

public ReplicationData()


ReplicationData

public ReplicationData(int type,
                       byte[] data,
                       Xid transaction,
                       byte[] lock_info,
                       long lock_acquisition_timeout,
                       long lock_lease_timeout,
                       boolean use_locks)

Method Details

getData

public byte[] getData()


getLockAcquisitionTimeout

public long getLockAcquisitionTimeout()


getLockInfo

public byte[] getLockInfo()


getLockLeaseTimeout

public long getLockLeaseTimeout()


getTransaction

public Xid getTransaction()


getType

public int getType()


readExternal

public void readExternal(ObjectInput in)
            throws IOException,
                   ClassNotFoundException


toString

public String toString()


typeToString

public static String typeToString(int t)


useLocks

public boolean useLocks()


writeExternal

public void writeExternal(ObjectOutput out)
            throws IOException


Copyright B) 2001,2002 www.jgroups.com . All Rights Reserved.