Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.1.2)

Part Number E27170-01

weblogic.management.runtime
Interface Timer

All Superinterfaces:
Serializable

public interface Timer
extends Serializable

This class provides runtime data on a timer that is currently maintained by the WebLogic timer implementation. It provides information about past expiration times and information about the next scheduled expiration.


Method Summary
 long getExpirationCount()
          Total number of times the timer expired after creation.
 long[] getPastExpirationTimes()
          Returns the past times when the timer had expired.
 long getPeriod()
          Return the period used to compute the next time this timer will expire.
 long getTimeout()
          Return the time at which this timer will expire.
 String getTimerManagerName()
          TimerManager name used to submit this timer.
 boolean isCancelled()
          Timer is cancelled and will not execute.
 boolean isStopped()
          This flag indicates that the stop listener will be invoked instead of the timer listener when it is executed.
 

Method Detail

getTimerManagerName

String getTimerManagerName()
TimerManager name used to submit this timer.


getTimeout

long getTimeout()
Return the time at which this timer will expire. The value returned is an absolute time (even if the timer was created with a relative time).

Returns:
absolute time at which this timer will expire

getPeriod

long getPeriod()
Return the period used to compute the next time this timer will expire. A value of zero indicates that the timer is a one-shot. A negative value means the next timeout is computed from the current timeout. Positive values mean the timeout is computed using the current timer after the listener has executed.

Returns:
period used to reset the timer

isStopped

boolean isStopped()
This flag indicates that the stop listener will be invoked instead of the timer listener when it is executed.


isCancelled

boolean isCancelled()
Timer is cancelled and will not execute.


getPastExpirationTimes

long[] getPastExpirationTimes()
Returns the past times when the timer had expired. The most recent 100 records are given. The records are not sorted. A value of 0 means that information is not available.


getExpirationCount

long getExpirationCount()
Total number of times the timer expired after creation.


Copyright 1996, 2013, 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
Java API Reference for Oracle WebLogic Server
12c (12.1.2)

Part Number E27170-01