Package org.atmosphere.jersey
Class Broadcastable
java.lang.Object
org.atmosphere.jersey.Broadcastable
Simple placeholder that can be used to broadcast message using a specific
Broadcaster.- Author:
- Jeanfrancois Arcand
-
Constructor Summary
ConstructorsConstructorDescriptionBroadcastable(Object message, Object callerMessage, org.atmosphere.cpr.Broadcaster b) Broadcast the message to the set of suspendedAtmosphereResource, and write back the callerMessage to the request which invoked the current resource method.Broadcastable(Object message, org.atmosphere.cpr.Broadcaster b) Broadcast the message to the set of suspendedAtmosphereResource, and write back the message to the request which invoked the current resource method.Broadcastable(org.atmosphere.cpr.Broadcaster b) -
Method Summary
Modifier and TypeMethodDescriptionBroadcast the message.org.atmosphere.cpr.Broadcaster
-
Constructor Details
-
Broadcastable
public Broadcastable(org.atmosphere.cpr.Broadcaster b) -
Broadcastable
Broadcast the message to the set of suspendedAtmosphereResource, and write back the message to the request which invoked the current resource method.- Parameters:
message- the message which will be broadcastedb- theBroadcaster
-
Broadcastable
Broadcast the message to the set of suspendedAtmosphereResource, and write back the callerMessage to the request which invoked the current resource method.- Parameters:
message- the message which will be broadcastedcallerMessage- the message which will be sent back to the request.b- theBroadcaster
-
-
Method Details
-
broadcast
Broadcast the message.- Returns:
- the transformed message (
BroadcastFilter)
-
getMessage
-
getBroadcaster
public org.atmosphere.cpr.Broadcaster getBroadcaster() -
getResponseMessage
-