org.jgroups.fork.UnknownForkHandler Maven / Gradle / Ivy
Go to download
This artifact provides a single jar that contains all classes required to use remote EJB and JMS, including
all dependencies. It is intended for use by those not using maven, maven users should just import the EJB and
JMS 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).
The newest version!
package org.jgroups.fork;
import org.jgroups.Message;
/**
* Allows a user of fork to define the handling of a message for which no fork stack or fork channel exists.
* @author Paul Ferraro
*/
public interface UnknownForkHandler {
/**
* Handle a message that refers to an unknown fork stack
* @param message an incoming message
* @param forkStackId the identifier of a fork stack
* @return the result of the up handler
*/
Object handleUnknownForkStack(Message message, String forkStackId);
/**
* Handle a message that refers to an unknown fork channel
* @param message an incoming message
* @param forkChannelId the identifier of a fork channel
* @return the result of the up handler
*/
Object handleUnknownForkChannel(Message message, String forkChannelId);
}