org.fusesource.hawtdispatch
Class EventAggregators

java.lang.Object
  extended by org.fusesource.hawtdispatch.EventAggregators

public class EventAggregators
extends Object

Author:
Hiram Chirino

Field Summary
static EventAggregator<Integer,Integer> INTEGER_ADD
          An EventAggregator that coalesces integer data obtained via calls to CustomDispatchSource.merge(Object).
static EventAggregator<Integer,Integer> INTEGER_OR
          An EventAggregator that coalesces integer data obtained via calls to CustomDispatchSource.merge(Object).
static EventAggregator<Long,Long> LONG_ADD
          An EventAggregator that coalesces long data obtained via calls to CustomDispatchSource.merge(Object).
static EventAggregator<Long,Long> LONG_OR
          An EventAggregator that coalesces long data obtained via calls to CustomDispatchSource.merge(Object).
 
Constructor Summary
EventAggregators()
           
 
Method Summary
static
<T> EventAggregator<T,HashSet<T>>
hashSet()
          An EventAggregator that coalesces object data obtained via calls to CustomDispatchSource.merge(Object) into a hash set.
static
<T> EventAggregator<T,LinkedList<T>>
linkedList()
          An EventAggregator that coalesces object data obtained via calls to CustomDispatchSource.merge(Object) into a linked list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INTEGER_ADD

public static final EventAggregator<Integer,Integer> INTEGER_ADD
An EventAggregator that coalesces integer data obtained via calls to CustomDispatchSource.merge(Object). Addition is used to coalesce the data.


LONG_ADD

public static final EventAggregator<Long,Long> LONG_ADD
An EventAggregator that coalesces long data obtained via calls to CustomDispatchSource.merge(Object). Addition is used to coalesce the data.


INTEGER_OR

public static final EventAggregator<Integer,Integer> INTEGER_OR
An EventAggregator that coalesces integer data obtained via calls to CustomDispatchSource.merge(Object). Bit-wise or is used to coalesce the data.


LONG_OR

public static final EventAggregator<Long,Long> LONG_OR
An EventAggregator that coalesces long data obtained via calls to CustomDispatchSource.merge(Object). Bit-wise or is used to coalesce the data.

Constructor Detail

EventAggregators

public EventAggregators()
Method Detail

linkedList

public static <T> EventAggregator<T,LinkedList<T>> linkedList()
An EventAggregator that coalesces object data obtained via calls to CustomDispatchSource.merge(Object) into a linked list.


hashSet

public static <T> EventAggregator<T,HashSet<T>> hashSet()
An EventAggregator that coalesces object data obtained via calls to CustomDispatchSource.merge(Object) into a hash set.



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