public class ListenerId extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
ID_NAMESPACE_SEPARATOR |
static String |
NAMESPACE_WILDCARD |
Constructor and Description |
---|
ListenerId(String namespace,
String topic) |
ListenerId(String namespace,
String topic,
String className,
String methodName,
String hashCode) |
Modifier and Type | Method and Description |
---|---|
static ListenerId |
build(String namespace,
String topic,
Class target,
Method callback) |
static ListenerId |
build(String namespace,
String topic,
groovy.lang.Closure target) |
static ListenerId |
build(String namespace,
String topic,
Object target,
Method callback) |
boolean |
equals(Object o) |
boolean |
equals(String patternId) |
String |
getClassName() |
String |
getHashCode() |
String |
getMethodName() |
String |
getNamespace() |
String |
getTopic() |
int |
hashCode() |
boolean |
matches(ListenerId target) |
static boolean |
matchesNamespace(String source,
String target,
boolean checkTargetTopic) |
static boolean |
matchesTopic(String source,
String target,
boolean checkTargetTopic) |
static ListenerId |
parse(String id) |
void |
setClassName(String className) |
void |
setHashCode(String hashCode) |
void |
setMethodName(String methodName) |
void |
setNamespace(String namespace) |
void |
setTopic(String topic) |
String |
toString() |
String |
toStringWithoutHash() |
public static final String NAMESPACE_WILDCARD
public static final String ID_NAMESPACE_SEPARATOR
public ListenerId(String namespace, String topic)
public String getNamespace()
public void setNamespace(String namespace)
public String getClassName()
public void setClassName(String className)
public String getMethodName()
public void setMethodName(String methodName)
public String getHashCode()
public void setHashCode(String hashCode)
public String toStringWithoutHash()
public static ListenerId build(String namespace, String topic, Object target, Method callback)
public static ListenerId build(String namespace, String topic, groovy.lang.Closure target)
public static ListenerId parse(String id)
public static boolean matchesTopic(String source, String target, boolean checkTargetTopic)
public static boolean matchesNamespace(String source, String target, boolean checkTargetTopic)
public boolean matches(ListenerId target)