org.omnaest.utils.dispatcher
Class DispatcherAbstract<T>

java.lang.Object
  extended by org.omnaest.utils.dispatcher.DispatcherAbstract<T>
All Implemented Interfaces:
Serializable

public abstract class DispatcherAbstract<T>
extends Object
implements Serializable

A DispatcherAbstract allows to implements dispatcher instances

Author:
Omnaest
See Also:
executeOnAllInstances(OperationVoid), Serialized Form

Field Summary
protected  ExceptionHandler exceptionHandler
           
protected  List<T> instanceList
           
 
Constructor Summary
DispatcherAbstract(List<T> instanceList)
           
 
Method Summary
 void executeOnAllInstances(OperationVoid<T> operation)
          Executes a given OperationVoid on all dispatch instances
 DispatcherAbstract<T> setExceptionHandler(ExceptionHandler exceptionHandler)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instanceList

protected final List<T> instanceList

exceptionHandler

protected ExceptionHandler exceptionHandler
Constructor Detail

DispatcherAbstract

public DispatcherAbstract(List<T> instanceList)
Method Detail

executeOnAllInstances

public void executeOnAllInstances(OperationVoid<T> operation)
Executes a given OperationVoid on all dispatch instances

Parameters:
operation -

setExceptionHandler

public DispatcherAbstract<T> setExceptionHandler(ExceptionHandler exceptionHandler)
Parameters:
exceptionHandler - ExceptionHandler
Returns:
this


Copyright © 2013. All Rights Reserved.