org.jgroups.blocks.mux.NoMuxHandler 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.mux;
import java.io.Serializable;
/**
* Returned by {@link MuxUpHandler} when a message is received with a specific {@link MuxHeader}, but no corresponding handler is registered.
* @author Paul Ferraro
*/
public class NoMuxHandler implements Serializable {
private static final long serialVersionUID = -694135384125080323L;
private short id;
public NoMuxHandler(short id) {
this.id = id;
}
public short getId() {
return id;
}
@Override
public boolean equals(Object object) {
if ((object == null) || !(object instanceof NoMuxHandler)) return false;
NoMuxHandler handler = (NoMuxHandler) object;
return (id == handler.id);
}
@Override
public int hashCode() {
return id;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy