org.drools.reteoo
Class AbstractObjectSinkAdapter
java.lang.Object
org.drools.reteoo.AbstractObjectSinkAdapter
- All Implemented Interfaces:
- Externalizable, Serializable, ObjectSinkPropagator
- Direct Known Subclasses:
- CompositeObjectSinkAdapter, EmptyObjectSinkAdapter, SingleObjectSinkAdapter
public abstract class AbstractObjectSinkAdapter
- extends Object
- implements ObjectSinkPropagator, Externalizable
An abstract super class for ObjectSinks
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
partitionId
protected RuleBasePartitionId partitionId
AbstractObjectSinkAdapter
protected AbstractObjectSinkAdapter(RuleBasePartitionId partitionId)
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
- Specified by:
writeExternal
in interface Externalizable
- Throws:
IOException
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
- Specified by:
readExternal
in interface Externalizable
- Throws:
IOException
ClassNotFoundException
getPartitionId
public RuleBasePartitionId getPartitionId()
- Returns the partition to which this propagator belongs to
- Specified by:
getPartitionId
in interface ObjectSinkPropagator
- Returns:
- the ID of the partition
setPartitionId
public void setPartitionId(RuleBasePartitionId partitionId)
- Sets the partition to which this propagator belongs to
- Parameters:
partitionId
-
Copyright © 2001-2013 JBoss Inc.. All Rights Reserved.