com.atlassian.event.internal
Class AsynchronousAbleEventDispatcher

java.lang.Object
  extended by com.atlassian.event.internal.AsynchronousAbleEventDispatcher
All Implemented Interfaces:
EventDispatcher

public final class AsynchronousAbleEventDispatcher
extends java.lang.Object
implements EventDispatcher

This dispatcher will dispatch event asynchronously if:

Since:
2.0

Constructor Summary
AsynchronousAbleEventDispatcher(EventExecutorFactory executorFactory)
          The only public constructor, uses an AnnotationAsynchronousEventResolver
 
Method Summary
 void dispatch(ListenerInvoker invoker, java.lang.Object event)
          Dispatches the event using the invoker.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsynchronousAbleEventDispatcher

public AsynchronousAbleEventDispatcher(EventExecutorFactory executorFactory)
The only public constructor, uses an AnnotationAsynchronousEventResolver

Parameters:
executorFactory - the executor to use for asynchronous event listener invocations
Method Detail

dispatch

public void dispatch(ListenerInvoker invoker,
                     java.lang.Object event)
Description copied from interface: EventDispatcher
Dispatches the event using the invoker.

Specified by:
dispatch in interface EventDispatcher
Parameters:
invoker - the invoker to use to dispatch the event
event - the event to dispatch


Copyright © 2006-2012 Atlassian. All Rights Reserved.