public class Broadcastable extends Object
Broadcaster.| Constructor and Description |
|---|
Broadcastable(Broadcaster b) |
Broadcastable(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(Object message,
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 |
|---|---|
Object |
broadcast()
Broadcast the message.
|
Broadcaster |
getBroadcaster() |
Object |
getMessage() |
Object |
getResponseMessage() |
public Broadcastable(Broadcaster b)
public Broadcastable(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(Object message, 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 Object broadcast()
BroadcastFilter)public Object getMessage()
public Broadcaster getBroadcaster()
public Object getResponseMessage()
Copyright © 2016. All rights reserved.