Class Broadcastable

java.lang.Object
org.atmosphere.jersey.Broadcastable

public class Broadcastable extends Object
Simple placeholder that can be used to broadcast message using a specific Broadcaster.
Author:
Jeanfrancois Arcand
  • Constructor Details

    • Broadcastable

      public Broadcastable(org.atmosphere.cpr.Broadcaster b)
    • Broadcastable

      public Broadcastable(Object message, org.atmosphere.cpr.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.
      Parameters:
      message - the message which will be broadcasted
      b - the Broadcaster
    • Broadcastable

      public Broadcastable(Object message, Object callerMessage, org.atmosphere.cpr.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.
      Parameters:
      message - the message which will be broadcasted
      callerMessage - the message which will be sent back to the request.
      b - the Broadcaster
  • Method Details

    • broadcast

      public Object broadcast()
      Broadcast the message.
      Returns:
      the transformed message (BroadcastFilter)
    • getMessage

      public Object getMessage()
    • getBroadcaster

      public org.atmosphere.cpr.Broadcaster getBroadcaster()
    • getResponseMessage

      public Object getResponseMessage()