org.jgroups.protocols.rules.EventHandler 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.protocols.rules;
import org.jgroups.Event;
import org.jgroups.Message;
/**
* Interface which defines 2 callbacks: up() and down(). An EventHandler can be installed in SUPERVISOR by a rule which
* requires callbacks when an event is passed up or down the stack.
* @author Bela Ban
* @since 3.3
*/
public interface EventHandler {
/**
* Called when an up event is received
* @param evt The event
* @return Ignored
*/
Object up(Event evt) throws Throwable;
Object up(Message msg) throws Throwable;
/**
* Called when a down event is received
* @param evt The event
* @return Ignored
*/
Object down(Event evt) throws Throwable;
Object down(Message msg) throws Throwable;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy