org.drools.core.common
Class SynchronizedRightTupleSets
java.lang.Object
org.drools.core.common.RightTupleSetsImpl
org.drools.core.common.SynchronizedRightTupleSets
- All Implemented Interfaces:
- RightTupleSets
public class SynchronizedRightTupleSets
- extends RightTupleSetsImpl
- implements RightTupleSets
Wraps some methods, to make them thread safe
| Methods inherited from class org.drools.core.common.RightTupleSetsImpl |
addAll, addAllDeletes, addAllInserts, addAllUpdates, clear, deleteSize, getDeleteFirst, getInsertFirst, getUpdateFirst, insertSize, isEmpty, removeDelete, removeInsert, removeUpdate, resetDelete, resetInsert, resetUpdate, toString, toStringSizes, updateSize |
SynchronizedRightTupleSets
public SynchronizedRightTupleSets(BetaMemory bm)
getLock
public Object getLock()
addInsert
public boolean addInsert(RightTuple rightTuple)
- Specified by:
addInsert in interface RightTupleSets- Overrides:
addInsert in class RightTupleSetsImpl
addDelete
public boolean addDelete(RightTuple rightTuple)
- Specified by:
addDelete in interface RightTupleSets- Overrides:
addDelete in class RightTupleSetsImpl
addUpdate
public boolean addUpdate(RightTuple rightTuple)
- Specified by:
addUpdate in interface RightTupleSets- Overrides:
addUpdate in class RightTupleSetsImpl
resetAll
public void resetAll()
- Specified by:
resetAll in interface RightTupleSets- Overrides:
resetAll in class RightTupleSetsImpl
takeAll
public RightTupleSets takeAll()
- The returned RightTupleSet, is not thread safe.
- Specified by:
takeAll in interface RightTupleSets- Overrides:
takeAll in class RightTupleSetsImpl
- Returns:
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.