M
- the type of message objectpublic interface RTopicAsync<M>
Modifier and Type | Method and Description |
---|---|
int |
addListener(StatusListener listener)
Subscribes to status changes of this topic
|
io.netty.util.concurrent.Future<Long> |
publishAsync(M message)
Publish the message to all subscribers of this topic asynchronously
|
void |
removeListener(int listenerId)
Removes the listener by
id for listening this topic |
io.netty.util.concurrent.Future<Long> publishAsync(M message)
message
- Future
object with number of clients that received the messageint addListener(StatusListener listener)
listener
- StatusListener
void removeListener(int listenerId)
id
for listening this topiclistenerId
- Copyright © 2014–2015. All rights reserved.