dcast the event to all Broadcaster ID starting with /hello broadcast("/hello", event) // Broadcast the event to all Broadcaster ID broaccast("/*", event); The rule used is similar to path/URI mapping used by technology like Servlet, Jersey, etc.
NOTE: Broadcasters' name must start with / in order to get retrieved by this class.
This class is NOT thread safe.
If you want to use MetaBroadcaster with Jersey or any framework, make sure all {@link org.atmosphere.cpr.Broadcaster#getID()}starts with '/'. For example, with Jersey:
@author Jeanfrancois Arcand
@Path(RestConstants.STREAMING + "/workspace{wid:/[0-9A-Z]+}")public class JerseyPubSub { "wid") private Broadcaster topic;