public class TopicSession
An identifier for the endpoint interface MessagingService
message handlers listen at.
interface MessagingService
Constructor and Description |
---|
TopicSession(java.lang.String topic,
long sessionID)
An identifier for the endpoint
interface MessagingService message handlers listen at. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
component1() |
long |
component2() |
TopicSession |
copy(java.lang.String topic,
long sessionID)
An identifier for the endpoint
interface MessagingService message handlers listen at. |
boolean |
equals(java.lang.Object p) |
long |
getSessionID() |
java.lang.String |
getTopic() |
int |
hashCode() |
boolean |
isBlank() |
java.lang.String |
toString() |
public TopicSession(java.lang.String topic, long sessionID)
An identifier for the endpoint interface MessagingService
message handlers listen at.
topic
- identifier for the general subject of the message, for example "platform.network_map.fetch".
The topic can be the empty string to match all messages (session ID must be DEFAULT_SESSION_ID).sessionID
- identifier for the session the message is part of. For services listening before
a session is established, use DEFAULT_SESSION_ID.interface MessagingService
public boolean isBlank()
public java.lang.String toString()
public java.lang.String getTopic()
public long getSessionID()
public java.lang.String component1()
public long component2()
public TopicSession copy(java.lang.String topic, long sessionID)
An identifier for the endpoint interface MessagingService
message handlers listen at.
topic
- identifier for the general subject of the message, for example "platform.network_map.fetch".
The topic can be the empty string to match all messages (session ID must be DEFAULT_SESSION_ID).sessionID
- identifier for the session the message is part of. For services listening before
a session is established, use DEFAULT_SESSION_ID.interface MessagingService
public int hashCode()
public boolean equals(java.lang.Object p)