org.solovyev.android
Class UiThreadExecutor

java.lang.Object
  extended by org.solovyev.android.UiThreadExecutor
All Implemented Interfaces:
Executor, org.solovyev.common.threads.DelayedExecutor

public class UiThreadExecutor
extends Object
implements org.solovyev.common.threads.DelayedExecutor

Implementation of DelayedExecutor for Android OS, execution is done on the main application thread (UI thread)


Constructor Summary
UiThreadExecutor()
           
 
Method Summary
 void execute(Runnable command)
           
 void execute(Runnable command, long delay, TimeUnit delayUnit)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UiThreadExecutor

public UiThreadExecutor()
Method Detail

execute

public void execute(@Nonnull
                    Runnable command,
                    long delay,
                    @Nonnull
                    TimeUnit delayUnit)
Specified by:
execute in interface org.solovyev.common.threads.DelayedExecutor

execute

public void execute(@Nonnull
                    Runnable command)
Specified by:
execute in interface Executor


Copyright © 2014 se.solovyev. All Rights Reserved.