站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 common API Documentation 英文版文档

TimeoutFactory (JBoss/Common API) - JBoss 4.0.1 sp1 common API Documentation 英文版文档


org.jboss.util.timeout
Class TimeoutFactory

java.lang.Object
  extended byorg.jboss.util.timeout.TimeoutFactory

public class TimeoutFactory
extends Object

The timeout factory. This is written with performance in mind. In case of n active timeouts, creating, cancelling and firing timeouts all operate in time O(log(n)). If a timeout is cancelled, the timeout is not discarded. Instead the timeout is saved to be reused for another timeout. This means that if no timeouts are fired, this class will eventually operate without allocating anything on the heap.

Version:
$Revision: 1.2.6.1 $
Author:
Ole Husgaard

Method Summary
static Timeout createTimeout(long time, TimeoutTarget target)
          Schedule a new timeout.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createTimeout

public static Timeout createTimeout(long time,
                                    TimeoutTarget target)
Schedule a new timeout.



Copyright © 2002 JBoss Group, LLC. All Rights Reserved.