Infinispan Distribution 5.2.6.Final-redhat-2

org.infinispan.commands
Interface TopologyAffectedCommand

All Superinterfaces:
ReplicableCommand
All Known Subinterfaces:
DataCommand, DataWriteCommand, FlagAffectedCommand, TransactionBoundaryCommand, WriteCommand
All Known Implementing Classes:
AbstractDataCommand, AbstractDataWriteCommand, AbstractFlagAffectedCommand, AbstractTransactionBoundaryCommand, ApplyDeltaCommand, ClearCommand, ClusteredGetCommand, CommitCommand, EvictCommand, GetCacheEntryCommand, GetKeyValueCommand, InvalidateCommand, InvalidateL1Command, LockControlCommand, PrepareCommand, PutKeyValueCommand, PutMapCommand, RemoveCommand, ReplaceCommand, RollbackCommand, TxCompletionNotificationCommand, VersionedCommitCommand, VersionedPrepareCommand, VersionedPutKeyValueCommand

public interface TopologyAffectedCommand
extends ReplicableCommand

Some of the commands sent over the wire can only be honored by the receiver if the topology of the cluster at delivery time is still 'compatible' with the topology in place at send time (eg. a 'get' command cannot execute on a node that is no longer owner after state transfer took place). These commands need to be tagged with the current topology id of the sender so the receiver can detect and handle topology mismatches.

Since:
5.2
Author:
anistor@redhat.com

Method Summary
 int getTopologyId()
           
 void setTopologyId(int topologyId)
           
 
Methods inherited from interface org.infinispan.commands.ReplicableCommand
getCommandId, getParameters, isReturnValueExpected, perform, setParameters
 

Method Detail

getTopologyId

int getTopologyId()

setTopologyId

void setTopologyId(int topologyId)

Infinispan Distribution 5.2.6.Final-redhat-2

Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.