public class OpList extends Object implements 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(String txAction)
Collapse the opList for the specific conditions.
|
OpList |
collapseForEvents(String txAction)
a slight variation of the collapse() for TxListener event handling
|
boolean |
contains(Operation anOp)
Support contains on opList
|
boolean |
containsOpName(String opName)
Returns true if the OpList contains an operation with opName,
returns false otherwise.
|
OpList |
getEntriesWithUniqueKeys(OpList entryOps) |
OpList |
getEntriesWithUniqueKeys(OpList entryOps,
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(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(String key)
Return a subset of the receiver which contains any operations
that occurred on the given key.
|
OpList |
getOpsForRegion(String regionName)
Return a subset of the receiver which contains any operations
that occurred on the given region.
|
OpList |
getOpsForRegionAndKey(String regionName,
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) |
Object |
set(int index,
Operation op)
Set the operation at the given index to the given operation.
|
String |
toString()
Return a string representation of the receiver
|
public 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(String opName)
opName - The name of the operation to match.public OpList getOpsForRegion(String regionName)
regionName - The name of the region.public OpList getOpsForKey(String key)
key - The key of interest for Operations.public OpList getOpsForRegionAndKey(String regionName, 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(String opName)
opName - The name of the operation to test for.public OpList collapse()
public OpList collapse(String txAction)
public OpList collapseForEvents(String txAction)
public OpList getEntryOps()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.