|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IPushService
| Method Summary | ||
|---|---|---|
void |
addNodeDisconnectedListener(IPushNodeDisconnectedListener listener)
|
|
|
connectToChannel(IPushNode<EventType> node,
IPushChannel<EventType> channel)
Connects the given push node to the given push channel |
|
|
createChannel(String label)
Creates a new push channel with the given label. |
|
|
disconnectFromChannel(IPushNode<EventType> node,
IPushChannel<EventType> channel)
|
|
|
installNode(Component component,
IPushEventHandler<EventType> handler)
|
|
boolean |
isConnected(IPushNode<?> node)
Determines if the node (client) is still connected, otherwise clears all queued events. |
|
|
publish(IPushChannel<EventType> channel,
EventType event)
|
|
|
publish(IPushNode<EventType> node,
EventType event)
Queues the given event for later processing by the associated IPushEventHandler. |
|
|
removeChannel(IPushChannel<EventType> channel)
|
|
void |
removeNodeDisconnectedListener(IPushNodeDisconnectedListener listener)
|
|
void |
uninstallNode(Component component,
IPushNode<?> node)
|
|
| Method Detail |
|---|
void addNodeDisconnectedListener(IPushNodeDisconnectedListener listener)
<EventType> void connectToChannel(IPushNode<EventType> node,
IPushChannel<EventType> channel)
IllegalArgumentException - if channel is unknown<EventType> IPushChannel<EventType> createChannel(String label)
label.
label - the label to associate with the new push channel. (may be null)
Note: The label has only informative purpose. Creating two
push channels with the same label will not result in an error.
<EventType> void disconnectFromChannel(IPushNode<EventType> node,
IPushChannel<EventType> channel)
<EventType> IPushNode<EventType> installNode(Component component,
IPushEventHandler<EventType> handler)
boolean isConnected(IPushNode<?> node)
<EventType> void publish(IPushChannel<EventType> channel,
EventType event)
<EventType> void publish(IPushNode<EventType> node,
EventType event)
IPushEventHandler. The
method does nothing in case the node is no longer connected.
<EventType> void removeChannel(IPushChannel<EventType> channel)
void removeNodeDisconnectedListener(IPushNodeDisconnectedListener listener)
void uninstallNode(Component component,
IPushNode<?> node)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||