Package org.apache.wicket.util.time

Examples of org.apache.wicket.util.time.Duration.lessThan()


  <EventType> TimerPushChannel<EventType> addPushChannel(
      final IPushEventHandler<EventType> pushEventHandler,
      final TimerPushChannel<EventType> channel)
  {
    final Duration pollingInterval = channel.getPollingInterval();
    if (pollingInterval.lessThan(getUpdateInterval()))
      setUpdateInterval(pollingInterval);

    handlers.put(channel, pushEventHandler);
    return channel;
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.