org.jgroups.blocks.executor.ExecutorEvent Maven / Gradle / Ivy
Go to download
This artifact provides a single jar that contains all classes required to use remote Jakarta Enterprise Beans and Jakarta Messaging, including
all dependencies. It is intended for use by those not using maven, maven users should just import the Jakarta Enterprise Beans and
Jakarta Messaging BOM's instead (shaded JAR's cause lots of problems with maven, as it is very easy to inadvertently end up
with different versions on classes on the class path).
package org.jgroups.blocks.executor;
import org.jgroups.Event;
/**
* Defines an event class for the execution of an entity.
*
* @author wburns
*/
public class ExecutorEvent extends Event {
public static final int TASK_SUBMIT = 1024; // arg = Runnable (Serializable)
public static final int CONSUMER_READY = 1025; // arg = null
public static final int TASK_COMPLETE = 1026; // arg = [Runnable, Throwable] or Runnable
public static final int TASK_CANCEL = 1027; // arg = [Runnable, boolean]
public static final int ALL_TASK_CANCEL = 1028; // arg = [Set, boolean]
/**
* @param type
* @param arg
*/
public ExecutorEvent(int type, Object arg) {
super(type, arg);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy