Android Open Source - Kite Async Type






From Project

Back to project page Kite.

License

The source code is released under:

Apache License

If you think the Android project Kite 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 org.kite.async;
/*w w w . j a  v a 2s  .co m*/
/**Type of asynchronous invocation of interfaces,
 * marked with {@link org.kite.annotations.Provided} annotation.
 * <p>Can be:</p>
 * <ul>
 *     <li>{@link #NONE} - calls will be synchronous</li>
 *     <li>{@link #ALL} - all methods will be called asynchronously</li>
 *     <li>{@link #METHODS} - only methods marked with AsyncMethod
 *     will be called asynchronously.
 *     </li>
 * </ul>
 *
 */
public enum AsyncType {
    /**No methods of this interface will be wrapped into
     * async calls, whether or not given interface
     * has methods with AsyncMethod annotation.
     *
     */
    NONE,

    /**Calls to every method of interface
     * with this type of async invocation will be
     * called asynchronously, whether or not they
     * are marked with AsyncMethod annoation
     */
    ALL,

    /**Only methods with marked with AsyncMethod
     * annotation will be called on a separate thread.
     *
     */
    METHODS
}




Java Source Code List

org.kite.annotations.AsyncMethod.java
org.kite.annotations.AsyncResult.java
org.kite.annotations.Provided.java
org.kite.annotations.Wired.java
org.kite.async.AsyncHandler.java
org.kite.async.AsyncType.java
org.kite.async.MethodResult.java
org.kite.async.ResultQueue.java
org.kite.sample.CalcFragment.java
org.kite.sample.CalcInterface.java
org.kite.sample.Calculator.java
org.kite.sample.MainActivity.java
org.kite.sample.SampleService.java
org.kite.sample.Substractor.java
org.kite.services.CommandService.java
org.kite.services.MainThreadExecutor.java
org.kite.wire.ClientFacade.java
org.kite.wire.InterfaceFinder.java
org.kite.wire.ServiceFacade.java
org.kite.wire.WireBinder.java
org.kite.wire.WireCallback.java
org.kite.wire.Wire.java
org.kite.wire.WiredService.java
org.kite.wire.package-info.java