Example usage for org.apache.wicket.util.time Duration add

List of usage examples for org.apache.wicket.util.time Duration add

Introduction

In this page you can find the example usage for org.apache.wicket.util.time Duration add.

Prototype

public Duration add(final Duration duration) 

Source Link

Document

Adds a given Duration to this Duration.

Usage

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));
}