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

org.jboss.threads.SimpleDirectExecutor Maven / Gradle / Ivy

package org.jboss.threads;

import java.util.concurrent.Executor;

class SimpleDirectExecutor implements Executor {

    static final SimpleDirectExecutor INSTANCE = new SimpleDirectExecutor();

    private SimpleDirectExecutor() {
    }

    public void execute(final Runnable command) {
        command.run();
    }

    public String toString() {
        return "Direct executor";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy