Drools :: Core 6.1.0.Beta1

org.drools.core.common
Class SynchronizedRightTupleSets

java.lang.Object
  extended by org.drools.core.common.RightTupleSetsImpl
      extended by org.drools.core.common.SynchronizedRightTupleSets
All Implemented Interfaces:
RightTupleSets

public class SynchronizedRightTupleSets
extends RightTupleSetsImpl
implements RightTupleSets

Wraps some methods, to make them thread safe


Field Summary
 
Fields inherited from class org.drools.core.common.RightTupleSetsImpl
deleteFirst, deleteSize, insertFirst, insertSize, updateFirst, updateSize
 
Constructor Summary
SynchronizedRightTupleSets(BetaMemory bm)
           
 
Method Summary
 boolean addDelete(RightTuple rightTuple)
           
 boolean addInsert(RightTuple rightTuple)
           
 boolean addUpdate(RightTuple rightTuple)
           
 Object getLock()
           
 void resetAll()
           
 RightTupleSets takeAll()
          The returned RightTupleSet, is not 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.drools.core.common.RightTupleSets
deleteSize, getDeleteFirst, getInsertFirst, getUpdateFirst, insertSize, isEmpty, toString, toStringSizes, updateSize
 

Constructor Detail

SynchronizedRightTupleSets

public SynchronizedRightTupleSets(BetaMemory bm)
Method Detail

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:

Drools :: Core 6.1.0.Beta1

Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.