public class ChannelID extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
COMMON
Constants to make the semantics of parameters to our name constructors more explicit.
|
static boolean |
INCLUDE_APPLINST_ID |
static boolean |
INCLUDE_IP |
static boolean |
NO_APPLINST_ID |
static boolean |
NO_IP |
static boolean |
QUEUE |
static boolean |
TOPIC |
Constructor and Description |
---|
ChannelID(String appPref,
String replicaId,
boolean useNodeId,
boolean useAppInstId,
boolean isTopic)
Constructor of channel names.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Implements equality check for ChannelIDs.
|
String |
getName()
Getter for the channel name.
|
int |
hashCode()
Computes a hash code based on the channel name and whether it is a topic.
|
String |
toString()
Pretty-printer.
|
public static final String COMMON
public static final boolean INCLUDE_IP
public static final boolean NO_IP
public static final boolean INCLUDE_APPLINST_ID
public static final boolean NO_APPLINST_ID
public static final boolean TOPIC
public static final boolean QUEUE
public ChannelID(String appPref, String replicaId, boolean useNodeId, boolean useAppInstId, boolean isTopic)
appPref
- The prefix used for the applications listening to the channel.replicaId
- Name of the replica, or ChannelID.COMMON if channel shared by all replicas.useNodeId
- Whether that IP address of the local node should be included in the channel name.useAppInstId
- Whether application instance id from settings should be included in the channel name.isTopic
- Whether the Channel is a Topic or a Queue.UnknownID
- if looking up the local IP number failed.public String getName()
public boolean equals(Object o)
Copyright © 2005–2016 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.