Skip navigation links

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

Part Number E55141-01
P4 Change 1723563 on 2015/10/09


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
abstract  long getExpirationCount()
          Total number of times the timer expired after creation.
abstract  long[] getPastExpirationTimes()
          Returns the past times when the timer had expired.
abstract  long getPeriod()
          Return the period used to compute the next time this timer will expire.
abstract  long getTimeout()
          Return the time at which this timer will expire.
abstract  String getTimerManagerName()
          TimerManager name used to submit this timer.
abstract  boolean isCancelled()
          Timer is cancelled and will not execute.
abstract  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.

Skip navigation links

Copyright 1996, 2015, 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.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09