eneter.messaging.threading.dispatching
Class AndroidDispatching

java.lang.Object
  extended by eneter.messaging.threading.dispatching.AndroidDispatching
All Implemented Interfaces:
IThreadDispatcherProvider

public class AndroidDispatching
extends java.lang.Object
implements IThreadDispatcherProvider

Invokes one by one using Android Handler mechanism (e.g. to invoke in the UI thread). This dispatcher is available only for the Android platform.


Constructor Summary
AndroidDispatching(Handler threadDispatcher)
          Constructs dispatcher.
 
Method Summary
 IThreadDispatcher getDispatcher()
          Returns the thread dispatcher which uses the Android Handler class.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AndroidDispatching

public AndroidDispatching(Handler threadDispatcher)
Constructs dispatcher.

Parameters:
threadDispatcher - handler used for dispatching.
Method Detail

getDispatcher

public IThreadDispatcher getDispatcher()
Returns the thread dispatcher which uses the Android Handler class.

Specified by:
getDispatcher in interface IThreadDispatcherProvider
Returns: