|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wicketstuff.push.timer.TimerPushService
public class TimerPushService
An implementation of IPushService based on a polling mechanism. This class is thread safe, and can be safely reused.
| Constructor Summary | |
|---|---|
TimerPushService(org.apache.wicket.util.time.Duration duration)
Constructs a TimerPushService with the given polling interval. |
|
| Method Summary | |
|---|---|
org.apache.wicket.util.time.Duration |
getDuration()
Returns the polling interval |
IPushTarget |
installPush(org.apache.wicket.Component component)
Installs a push facility on the given component. |
void |
uninstallPush(org.apache.wicket.Component component)
Uninstalls a push installer which has previously been installed on a component. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TimerPushService(org.apache.wicket.util.time.Duration duration)
duration - the polling interval, must not be null| Method Detail |
|---|
public IPushTarget installPush(org.apache.wicket.Component component)
IPushServiceThe component on which the push facility is installed doesn't really matter as soon as it is visible, except that only one push service can be installed by component.
Usually the page is used as component.
installPush in interface IPushServicecomponent - the component on which the push facility must be installedpublic void uninstallPush(org.apache.wicket.Component component)
IPushService
Calling this method after calling #installPush(Component, IPushInstaller)
is mandatory if you use a different push installer instance for each component
instance.
uninstallPush in interface IPushServicecomponent - the component on which push service must be uninstalledpublic org.apache.wicket.util.time.Duration getDuration()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||