Package net.jini.core.transaction.server
Class TransactionParticipantDataImpl
java.lang.Object
net.jini.core.transaction.server.TransactionParticipantDataImpl
- All Implemented Interfaces:
IReplicationParticipantsMetadata,ISwapExternalizable,SmartExternalizable,ConsolidatedDistributedTransactionMetaData,TransactionParticipantMetaData,Externalizable,Serializable,TransactionParticipantData
public class TransactionParticipantDataImpl
extends Object
implements TransactionParticipantData, TransactionParticipantMetaData, ConsolidatedDistributedTransactionMetaData, SmartExternalizable, IReplicationParticipantsMetadata
Contains ServerTransaction meta data for distributed transactions that have more than 1
participant.
- Since:
- 7.1
- Author:
- anna
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTransactionParticipantDataImpl(TransactionUniqueId transactionUniqueId, int partitionIdOneBased, int numberOfParticipants) -
Method Summary
Modifier and TypeMethodDescriptionbooleanintThe id of the space that committed the transaction.longThe id of the distributed transactionintNumber of participants in transactionThe id of the transactioninthashCode()booleanvoidvoidtoString()voidvoidwriteToSwap(ObjectOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.gigaspaces.serialization.SmartExternalizable
enabledSmartExternalizableWithReference
-
Constructor Details
-
TransactionParticipantDataImpl
public TransactionParticipantDataImpl() -
TransactionParticipantDataImpl
public TransactionParticipantDataImpl(TransactionUniqueId transactionUniqueId, int partitionIdOneBased, int numberOfParticipants) - Parameters:
transactionUniqueId-partitionIdOneBased-numberOfParticipants-
-
-
Method Details
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException- See Also:
-
readFromSwap
- Specified by:
readFromSwapin interfaceISwapExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException- See Also:
-
writeToSwap
- Specified by:
writeToSwapin interfaceISwapExternalizable- Throws:
IOException
-
getTransactionId
public long getTransactionId()Description copied from interface:TransactionParticipantDataThe id of the distributed transaction- Specified by:
getTransactionIdin interfaceTransactionParticipantData- Returns:
- the transactionId
-
getTransactionUniqueId
Description copied from interface:TransactionParticipantMetaDataThe id of the transaction- Specified by:
getTransactionUniqueIdin interfaceConsolidatedDistributedTransactionMetaData- Specified by:
getTransactionUniqueIdin interfaceTransactionParticipantMetaData- Returns:
- the transactionId
-
getParticipantId
public int getParticipantId()Description copied from interface:TransactionParticipantDataThe id of the space that committed the transaction.- Specified by:
getParticipantIdin interfaceIReplicationParticipantsMetadata- Specified by:
getParticipantIdin interfaceTransactionParticipantData- Specified by:
getParticipantIdin interfaceTransactionParticipantMetaData- Returns:
- the participantId
-
getTransactionParticipantsCount
public int getTransactionParticipantsCount()Description copied from interface:TransactionParticipantDataNumber of participants in transaction- Specified by:
getTransactionParticipantsCountin interfaceConsolidatedDistributedTransactionMetaData- Specified by:
getTransactionParticipantsCountin interfaceIReplicationParticipantsMetadata- Specified by:
getTransactionParticipantsCountin interfaceTransactionParticipantData- Specified by:
getTransactionParticipantsCountin interfaceTransactionParticipantMetaData- Returns:
- the participantsCount
-
isUnconsoliated
public boolean isUnconsoliated() -
toString
-
getContextId
- Specified by:
getContextIdin interfaceIReplicationParticipantsMetadata
-
hashCode
public int hashCode() -
equals
-