public class Broadcastable
extends java.lang.Object
Broadcaster.| Constructor and Description |
|---|
Broadcastable(Broadcaster b) |
Broadcastable(java.lang.Object message,
Broadcaster b)
Broadcast the message to the set of suspended
AtmosphereResource, and write back
the message to the request which invoked the current resource method. |
Broadcastable(java.lang.Object message,
java.lang.Object callerMessage,
Broadcaster b)
Broadcast the message to the set of suspended
AtmosphereResource, and write back
the callerMessage to the request which invoked the current resource method. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
broadcast()
Broadcast the message.
|
Broadcaster |
getBroadcaster() |
java.lang.Object |
getMessage() |
java.lang.Object |
getResponseMessage() |
public Broadcastable(Broadcaster b)
public Broadcastable(java.lang.Object message,
Broadcaster b)
AtmosphereResource, and write back
the message to the request which invoked the current resource method.message - the message which will be broadcastedb - the Broadcasterpublic Broadcastable(java.lang.Object message,
java.lang.Object callerMessage,
Broadcaster b)
AtmosphereResource, and write back
the callerMessage to the request which invoked the current resource method.message - the message which will be broadcastedcallerMessage - the message which will be sent back to the request.b - the Broadcasterpublic java.lang.Object broadcast()
BroadcastFilter)public java.lang.Object getMessage()
public Broadcaster getBroadcaster()
public java.lang.Object getResponseMessage()
Copyright © 2021. All Rights Reserved.