Package org.drools.core.reteoo
Class AbstractLeftTupleSinkAdapter
- java.lang.Object
-
- org.drools.core.reteoo.AbstractLeftTupleSinkAdapter
-
- All Implemented Interfaces:
Externalizable,Serializable,LeftTupleSinkPropagator
- Direct Known Subclasses:
CompositeLeftTupleSinkAdapter,EmptyLeftTupleSinkAdapter,SingleLeftTupleSinkAdapter
public abstract class AbstractLeftTupleSinkAdapter extends Object implements LeftTupleSinkPropagator
An abstract super class for the LeftTupleSinkAdapters- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected RuleBasePartitionIdpartitionId
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractLeftTupleSinkAdapter()protectedAbstractLeftTupleSinkAdapter(RuleBasePartitionId partitionId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RuleBasePartitionIdgetPartitionId()Returns the partition to which this propagator belongs tovoidreadExternal(ObjectInput in)voidsetPartitionId(RuleBasePartitionId partitionId)Sets the partition to which this propagator belongs tovoidwriteExternal(ObjectOutput out)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.drools.core.reteoo.LeftTupleSinkPropagator
getFirstLeftTupleSink, getLastLeftTupleSink, getMatchingNode, getSinks, size
-
-
-
-
Field Detail
-
partitionId
protected RuleBasePartitionId partitionId
-
-
Constructor Detail
-
AbstractLeftTupleSinkAdapter
protected AbstractLeftTupleSinkAdapter(RuleBasePartitionId partitionId)
-
AbstractLeftTupleSinkAdapter
protected AbstractLeftTupleSinkAdapter()
-
-
Method Detail
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
getPartitionId
public RuleBasePartitionId getPartitionId()
Returns the partition to which this propagator belongs to- Returns:
- the ID of the partition
-
setPartitionId
public void setPartitionId(RuleBasePartitionId partitionId)
Sets the partition to which this propagator belongs to- Parameters:
partitionId-
-
-