public class TimerPushService extends AbstractPushService
IPushService
.
disconnectListeners, nodesByChannels
Modifier and Type | Method and Description |
---|---|
static TimerPushService |
get() |
static TimerPushService |
get(org.apache.wicket.Application application) |
org.apache.wicket.util.time.Duration |
getDefaultPollingInterval() |
org.apache.wicket.util.time.Duration |
getMaxTimeLag() |
static IPushServiceRef<TimerPushService> |
getRef() |
<EventType> |
installNode(org.apache.wicket.Component component,
IPushEventHandler<EventType> handler) |
<EventType> |
installNode(org.apache.wicket.Component component,
IPushEventHandler<EventType> handler,
org.apache.wicket.util.time.Duration pollingInterval) |
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 . |
void |
setCleanupInterval(org.apache.wicket.util.time.Duration interval)
Sets the interval in which the clean up task will be executed that removes information about
disconnected push nodes.
|
void |
setDefaultPollingInterval(org.apache.wicket.util.time.Duration defaultPollingInterval) |
void |
setMaxTimeLag(org.apache.wicket.util.time.Duration maxTimeLag) |
void |
uninstallNode(org.apache.wicket.Component component,
IPushNode<?> node) |
addNodeDisconnectedListener, connectToChannel, createChannel, disconnectFromAllChannels, disconnectFromChannel, removeChannel, removeNodeDisconnectedListener
public static TimerPushService get()
public static TimerPushService get(org.apache.wicket.Application application)
public static IPushServiceRef<TimerPushService> getRef()
public org.apache.wicket.util.time.Duration getDefaultPollingInterval()
public org.apache.wicket.util.time.Duration getMaxTimeLag()
public <EventType> TimerPushNode<EventType> installNode(org.apache.wicket.Component component, IPushEventHandler<EventType> handler)
public <EventType> TimerPushNode<EventType> installNode(org.apache.wicket.Component component, IPushEventHandler<EventType> handler, org.apache.wicket.util.time.Duration pollingInterval)
public boolean isConnected(IPushNode<?> node)
public <EventType> void publish(IPushChannel<EventType> channel, EventType event)
public <EventType> void publish(IPushNode<EventType> node, EventType event)
IPushEventHandler
. The
method does nothing in case the node is no longer connected.public void setCleanupInterval(org.apache.wicket.util.time.Duration interval)
public void setDefaultPollingInterval(org.apache.wicket.util.time.Duration defaultPollingInterval)
public void setMaxTimeLag(org.apache.wicket.util.time.Duration maxTimeLag)
public void uninstallNode(org.apache.wicket.Component component, IPushNode<?> node)
Copyright © 2015. All rights reserved.