com.droidkit.actors.extensions.RunnableExtension Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of actors Show documentation
Show all versions of actors Show documentation
DroidKit Actors is simple actor model implementation for java and Android
package com.droidkit.actors.extensions;
/**
* Created by ex3ndr on 11.09.14.
*/
public class RunnableExtension implements ActorExtension {
@Override
public void preStart() {
}
@Override
public boolean onReceive(Object message) {
if (message instanceof Runnable) {
((Runnable) message).run();
return true;
}
return false;
}
@Override
public void postStop() {
}
}