|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.excalibur.event.command.TPSPThreadManager.SourceDequeueInterceptor
This is used to plug into Queues so that we can intercept calls to the dequeue operation.
Constructor Summary | |
TPSPThreadManager.SourceDequeueInterceptor(TPSPThreadManager.SourceRunner runner,
EventHandler handler,
EDU.oswego.cs.dl.util.concurrent.PooledExecutor threadPool,
int threshold,
int margin)
Create a new SourceDequeueInterceptor. |
Method Summary | |
void |
after(Source context)
An operation executed after dequeing events from the queue. |
void |
before(Source context)
An operation executed before dequeing events from the queue. |
void |
stop()
Ensure all event runners are stopped for this partial pipeline. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TPSPThreadManager.SourceDequeueInterceptor(TPSPThreadManager.SourceRunner runner, EventHandler handler, EDU.oswego.cs.dl.util.concurrent.PooledExecutor threadPool, int threshold, int margin)
runner
- The initial SourceRunner.handler
- The EventHandler to send events to.threadPool
- The PooledExecutor for the set of threads.threshold
- The threshold of events before a new thread is executed.margin
- The margin of error allowed for the events.Method Detail |
public void before(Source context)
This method is called once at the beginning of any dequeue
method regardless of how many queue elements are dequeued.
before
in interface DequeueInterceptor
context
- The source from which the dequeue is performed.public void after(Source context)
This method is called once at the end of any dequeue
method regardless of how many queue elements are dequeued.
after
in interface DequeueInterceptor
context
- The source from which the dequeue is performed.public void stop()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |