public interface IPushService
Modifier and Type | Method and Description |
---|---|
void |
addNodeDisconnectedListener(IPushNodeDisconnectedListener listener) |
<EventType> |
connectToChannel(IPushNode<EventType> node,
IPushChannel<EventType> channel)
Connects the given push node to the given push channel
|
<EventType> |
createChannel(String label)
Creates a new push channel with the given
label . |
<EventType> |
disconnectFromChannel(IPushNode<EventType> node,
IPushChannel<EventType> channel) |
<EventType> |
installNode(org.apache.wicket.Component component,
IPushEventHandler<EventType> handler) |
boolean |
isConnected(IPushNode<?> node)
Determines if the node (client) is still connected, otherwise clears all queued events.
|
<EventType> |
publish(IPushChannel<EventType> channel,
EventType event) |
<EventType> |
publish(IPushNode<EventType> node,
EventType event)
Queues the given event for later processing by the associated
IPushEventHandler . |
<EventType> |
removeChannel(IPushChannel<EventType> channel) |
void |
removeNodeDisconnectedListener(IPushNodeDisconnectedListener listener) |
void |
uninstallNode(org.apache.wicket.Component component,
IPushNode<?> node) |
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(org.apache.wicket.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(org.apache.wicket.Component component, IPushNode<?> node)
Copyright © 2015. All rights reserved.