Android Open Source - client-android Event Dispatcher






From Project

Back to project page client-android.

License

The source code is released under:

Apache License

If you think the Android project client-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.qmonix.sdk;
//  w w w. j  a  v a2 s .  c  o m

/**
 * Event dispatcher is responsible for collecting and dispatching events. Sample dispatchers:
 * file dispatcher that stores events locally in file system; HTTP dispatcher which sends events to
 * Qmonix Web service, log dispatcher that sends collected events to log output, etc.
 * <p>
 * Use {@link #submit submit} to pass events to event dispatcher. Use {@link #dispatch dispatch}
 * to flush the collected events meaning to act appropriately to specific dispatcher logic.
 *
 * @see Event
 */
public interface EventDispatcher {

  /**
   * Passes a specified event object to the dispatcher.
   *
   * @param event event object to dispatch.
   */
  public void submit(Event event);

  /**
   * Send, store, print collected events.
   *
   * @param handler successful or failed dispatch handler.
   */
  public void dispatch(EventDispatchHandler handler);
}




Java Source Code List

com.qmonix.sample.basic.MainActivity.java
com.qmonix.sdk.EventDispatchHandler.java
com.qmonix.sdk.EventDispatcher.java
com.qmonix.sdk.EventMessage.java
com.qmonix.sdk.Event.java
com.qmonix.sdk.FireableTimingEvent.java
com.qmonix.sdk.HttpEventDispatcher.java
com.qmonix.sdk.LogEventDispatcher.java
com.qmonix.sdk.QLog.java
com.qmonix.sdk.TimingEvent.java
com.qmonix.sdk.Tracker.java
com.qmonix.sdk.VolumeEvent.java
com.qmonix.sdk.helpers.HttpHelper.java
com.qmonix.sdk.helpers.exceptions.HttpHelperException.java
com.qmonix.sdk.utils.AsyncTaskResult.java
com.qmonix.sdk.utils.Utils.java