org.atmosphere.samples.guice
Class ResourceChat

java.lang.Object
  extended by org.atmosphere.samples.guice.ResourceChat

public class ResourceChat
extends Object


Constructor Summary
ResourceChat()
           
 
Method Summary
 Response broadcast(Message message)
          Broadcast the received message object to all suspended response.
 String suspend()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceChat

public ResourceChat()
Method Detail

suspend

@Suspend
public String suspend()

broadcast

public Response broadcast(Message message)
Broadcast the received message object to all suspended response. Do not write back the message to the calling connection.

Parameters:
message - a Message
Returns:
a Response


Copyright © 2012. All Rights Reserved.