public class OpList
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
OpList() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Operation anOp)
Add an operation to this instance.
|
void |
addAll(OpList toBeAdded)
Add all operations in given opList to the receiver.
|
void |
addAll(OpList toBeAdded,
boolean allowDuplicates)
Add all operations in the given opList to the receiver (allow duplicates)
|
OpList |
collapse() |
OpList |
collapse(java.lang.String txAction)
Collapse the opList for the specific conditions.
|
OpList |
collapseForEvents(java.lang.String txAction)
a slight variation of the collapse() for TxListener event handling
|
boolean |
contains(Operation anOp)
Support contains on opList
|
boolean |
containsOpName(java.lang.String opName)
Returns true if the OpList contains an operation with opName,
returns false otherwise.
|
OpList |
getEntriesWithUniqueKeys(OpList entryOps) |
OpList |
getEntriesWithUniqueKeys(OpList entryOps,
java.lang.String txAction) |
OpList |
getEntryOps()
Return an OpList containing only entry operations in the receiver.
|
Operation |
getOperation(int i)
Return the operation at the given index.
|
OpList |
getOps(java.lang.String opName)
Return a subset of the receiver containing operations which
match the given opName.
|
OpList |
getOpsAffectedBy(Operation operation)
Return a subset of the receiver which contains any operations
that were affected by the given operation.
|
OpList |
getOpsForKey(java.lang.String key)
Return a subset of the receiver which contains any operations
that occurred on the given key.
|
OpList |
getOpsForRegion(java.lang.String regionName)
Return a subset of the receiver which contains any operations
that occurred on the given region.
|
OpList |
getOpsForRegionAndKey(java.lang.String regionName,
java.lang.Object key)
Return a subset of the receiver which contains any operations
that occurred on the given key in the given region.
|
OpList |
handleDoubleInvalidates(OpList entryOps) |
int |
numOps()
Return the number of operations in this instance.
|
void |
remove(int index)
Remove operation at index provided from this instance.
|
OpList |
removeNoOpGets(OpList entryOps) |
java.lang.Object |
set(int index,
Operation op)
Set the operation at the given index to the given operation.
|
java.lang.String |
toString()
Return a string representation of the receiver
|
public java.lang.Object set(int index,
Operation op)
index - The index to set.Op - The Operation to put at index.public void addAll(OpList toBeAdded)
toBeAdded - The opList to add to the receiver.public void add(Operation anOp)
anOp - The operation to add.public void addAll(OpList toBeAdded, boolean allowDuplicates)
toBeAdded - The opList to addallowDuplicates - allow duplicates in the resulting opListpublic void remove(int index)
index - - the index of the operation to removepublic boolean contains(Operation anOp)
anOp - - the operation to testpublic int numOps()
public Operation getOperation(int i)
The - index of the Operation to return.public OpList getOps(java.lang.String opName)
opName - The name of the operation to match.public OpList getOpsForRegion(java.lang.String regionName)
regionName - The name of the region.public OpList getOpsForKey(java.lang.String key)
key - The key of interest for Operations.public OpList getOpsForRegionAndKey(java.lang.String regionName, java.lang.Object key)
regionName - The name of the region.key - The key of interest for Operations.public OpList getOpsAffectedBy(Operation operation)
operation - The operation to use to determine which ops in
the opList were affected.public boolean containsOpName(java.lang.String opName)
opName - The name of the operation to test for.public OpList collapse()
public OpList collapse(java.lang.String txAction)
public OpList collapseForEvents(java.lang.String txAction)
public OpList getEntryOps()
public OpList getEntriesWithUniqueKeys(OpList entryOps, java.lang.String txAction)
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.