org.fusesource.hawtdispatch
Class AggregatingExecutor

java.lang.Object
  extended by org.fusesource.hawtdispatch.AggregatingExecutor
All Implemented Interfaces:
Executor

public class AggregatingExecutor
extends Object
implements Executor

Sends runnable tasks to a DispatchQueue via a an EventAggregator so that they first batch up on the sender side before being sent to the DispatchQueue which then executes that tasks.

Author:
Hiram Chirino

Constructor Summary
AggregatingExecutor(DispatchQueue queue)
           
 
Method Summary
 void execute(Runnable task)
           
 void resume()
           
 void suspend()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AggregatingExecutor

public AggregatingExecutor(DispatchQueue queue)
Method Detail

suspend

public void suspend()

resume

public void resume()

execute

public void execute(Runnable task)
Specified by:
execute in interface Executor


Copyright © 2010-2012 FuseSource, Corp.. All Rights Reserved.