Oracle Fusion Middleware
Oracle WebLogic Server API Reference
12c Release 1 (12.1.1)

Part Number E24391-02

weblogic.timers
Class TimerManagerFactory

java.lang.Object
  extended by weblogic.timers.TimerManagerFactory

public abstract class TimerManagerFactory
extends Object

The TimerManagerFactory class allows for the creation and lookup of timer managers. It provides a singleton object, a method for obtaining a reference to that object, and then methods on that singleton for the creation and lookup of timer managers.


Constructor Summary
TimerManagerFactory()
           
 
Method Summary
abstract  TimerManager getCommonjTimerManager(String name, weblogic.work.WorkManager wm)
           
abstract  TimerManager getCommonjTimerManager(TimerManager manager)
          Return the commonj TimerManager corresponding to the internal TimerManager
abstract  TimerManager getDefaultTimerManager()
          Return a reference to the default timer manager.
abstract  TimerManager getTimerManager(String name)
          Return a reference to specified timer manager using the whatever work manager is associated with it, or the default work manager if the timer manager doesn't exist
abstract  TimerManager getTimerManager(String name, String policy)
          Return a reference to specified timer manager.
abstract  TimerManager getTimerManager(String name, weblogic.work.WorkManager wm)
          Return a reference to specified timer manager.
static TimerManagerFactory getTimerManagerFactory()
           
abstract  void stopAllTimers()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimerManagerFactory

public TimerManagerFactory()
Method Detail

getTimerManagerFactory

public static TimerManagerFactory getTimerManagerFactory()

getDefaultTimerManager

public abstract TimerManager getDefaultTimerManager()
Return a reference to the default timer manager.

Returns:
a reference to the default timer manager

getTimerManager

public abstract TimerManager getTimerManager(String name,
                                             String policy)
Return a reference to specified timer manager. If the timer manager does not exist, then create one with that name. If manager does exist then the policy must match the existing manager or an exception is thrown.

Returns:
a reference to the timer manager with the user specified name.
Throws:
IllegalArgumentException - if there is a policy name conflict

getTimerManager

public abstract TimerManager getTimerManager(String name,
                                             weblogic.work.WorkManager wm)
Return a reference to specified timer manager. If the timer manager does not exist, then create one with that name. If manager does exist then the policy must match the existing manager or an exception is thrown.

Returns:
a reference to the timer manager with the user specified name.
Throws:
IllegalArgumentException - if there is a policy name conflict

getTimerManager

public abstract TimerManager getTimerManager(String name)
Return a reference to specified timer manager using the whatever work manager is associated with it, or the default work manager if the timer manager doesn't exist

Returns:
a reference to the timer manager with the user specified name.
Throws:
IllegalArgumentException - if there is a policy name conflict

getCommonjTimerManager

public abstract TimerManager getCommonjTimerManager(String name,
                                                    weblogic.work.WorkManager wm)

getCommonjTimerManager

public abstract TimerManager getCommonjTimerManager(TimerManager manager)
Return the commonj TimerManager corresponding to the internal TimerManager


stopAllTimers

public abstract void stopAllTimers()

Copyright 1996, 2011, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Oracle WebLogic Server API Reference
12c Release 1 (12.1.1)

Part Number E24391-02