equip.net
Class Timer

java.lang.Object
  extended byequip.net.Timer

class Timer
extends java.lang.Object

JCP Timer class. This code has been generated using C2J++ C2J++ is based on Chris Laffra's C2J (laffra@watson.ibm.com) Read general disclaimer distributed with C2J++ before using this code For information about C2J++, send mail to Ilya_Tilevich@ibi.com


Field Summary
(package private)  boolean set
           
(package private)  long startTime
           
(package private)  long timeout
           
 
Constructor Summary
Timer()
          Timer
 
Method Summary
 void bringForward(long maxRemaining)
          bringForward If set, ensure that it will expire/trigger within this time
 void cancelTimer()
          cancelTimer
 long getExpires()
          getExpires
 long getTimeout()
          getTimeout
 boolean isSet()
          isSet
 void setTimeout(int t)
          setTimeout
 void setTimer()
          setTimer
 boolean tick()
          tick
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

set

boolean set

startTime

long startTime

timeout

long timeout
Constructor Detail

Timer

public Timer()
Timer

Method Detail

setTimeout

public void setTimeout(int t)
setTimeout

Parameters:
t -

getTimeout

public long getTimeout()
getTimeout

Returns:
int

getExpires

public long getExpires()
getExpires

Returns:
int

setTimer

public void setTimer()
setTimer


isSet

public boolean isSet()
isSet

Returns:
PRBool

cancelTimer

public void cancelTimer()
cancelTimer


tick

public boolean tick()
tick

Returns:
PRBool

bringForward

public void bringForward(long maxRemaining)
bringForward If set, ensure that it will expire/trigger within this time