All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.savl.ripple.client.pubsub.CallbackContext Maven / Gradle / Ivy

There is a newer version: 1.0.2
Show newest version
package com.savl.ripple.client.pubsub;

public abstract class CallbackContext {
    public void execute(Runnable runnable) {
        runnable.run();
    }
    // TODO: perhaps this interface/class/concept
    // can be expanded (and subsequently renamed .. CallbackContext ??)
    // to automatically remove an ContextedCallback
    // Perhaps `once` can be reimplemented in these terms too ;)
    public boolean shouldExecute() {
        return true;
    }
    public boolean shouldRemove() {
        return false;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy