|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.atmosphere.samples.pubsub.TypedChannel
public class TypedChannel
Simple Resource acting like a channel of communication.
| Constructor Summary | |
|---|---|
TypedChannel()
|
|
| Method Summary | |
|---|---|
java.lang.String |
handshake()
Subscribe to "channel" distribution. |
java.lang.String |
onMessage(java.lang.String message)
Broadcast messages to the "channel" distribution. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TypedChannel()
| Method Detail |
|---|
@Subscribe(value="channel") public java.lang.String handshake()
@Publish(value="channel") public java.lang.String onMessage(java.lang.String message)
message - the message to distribute
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||