org.omnaest.utils.dispatcher
Class DispatcherAbstract<T>
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
instanceList
protected final List<T> instanceList
exceptionHandler
protected ExceptionHandler exceptionHandler
DispatcherAbstract
public DispatcherAbstract(List<T> instanceList)
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.