org.drools.reteoo
Class PartitionTaskManager

java.lang.Object
  extended by org.drools.reteoo.PartitionTaskManager

public class PartitionTaskManager
extends Object

A class to control the tasks for a given rulebase partition. It requires a thread pool that is created in the working memory and injected in here.


Nested Class Summary
static interface PartitionTaskManager.Action
          An interface for all actions to be executed by the PartitionTask
static class PartitionTaskManager.FactAction
          An abstract super class for all handle-related actions
static class PartitionTaskManager.FactAssertAction
           
static class PartitionTaskManager.LeftTupleAction
          An abstract super class for all leftTuple-related actions
static class PartitionTaskManager.LeftTupleAssertAction
           
static class PartitionTaskManager.LeftTupleRetractAction
           
static class PartitionTaskManager.PartitionTask
          A worker task that keeps processing the nodes queue.
 
Constructor Summary
PartitionTaskManager(PartitionManager manager, InternalWorkingMemory workingMemory)
           
 
Method Summary
 boolean enqueue(PartitionTaskManager.Action action)
          Adds the given action to the processing queue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PartitionTaskManager

public PartitionTaskManager(PartitionManager manager,
                            InternalWorkingMemory workingMemory)
Method Detail

enqueue

public boolean enqueue(PartitionTaskManager.Action action)
Adds the given action to the processing queue

Parameters:
action - the action to be processed
Returns:
true if the action was successfully added to the processing queue. false otherwise.


Copyright © 2001-2013 JBoss Inc.. All Rights Reserved.