List of usage examples for org.apache.wicket.util.time Duration add
public Duration add(final Duration duration)
Duration
to this Duration
. From source file:org.wicketstuff.chat.channel.TimerChannelBehavior.java
License:Apache License
/** * Construct a TimerChannelBehavior which actually refreshes the clients by * polling the server for changes at the given duration. * //from w w w . ja v a 2s . c o m * @param updateInterval * the interval at which the server should be polled for changes */ public TimerChannelBehavior(final Duration updateInterval) { this(updateInterval, updateInterval.add(TIMEOUT_MARGIN)); }