Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.mobicents.slee.runtime.facilities
Class TimerFacilityImpl.MyTimerTask  view TimerFacilityImpl.MyTimerTask download TimerFacilityImpl.MyTimerTask.java

java.lang.Object
  extended byjava.util.TimerTask
      extended byorg.mobicents.slee.runtime.facilities.TimerFacilityImpl.MyTimerTask
All Implemented Interfaces:
java.lang.Runnable, java.io.Serializable
Enclosing class:
TimerFacilityImpl

class TimerFacilityImpl.MyTimerTask
extends java.util.TimerTask
implements java.io.Serializable


Field Summary
private  java.lang.String activityContextId
           
private  Address address
           
(package private)  int missedRepetitions
           
(package private)  int numRepetitions
           
(package private)  long period
           
(package private)  int remainingRepetitions
           
(package private)  long startTime
           
private  TimerID timerId
           
private  TimerOptions timerOptions
           
 
Fields inherited from class java.util.TimerTask
 
Constructor Summary
TimerFacilityImpl.MyTimerTask(TimerID timerId, java.lang.String activityContextId, Address address, long startTime, long period, int numRepetitions, TimerOptions timerOptions)
           
 
Method Summary
private  void decrementRemainingRepetitions()
          Decrement remainingRepetitions by 1 if this is not an infinitely repeatable timer
 java.lang.String getActivityContextId()
           
(package private)  TimerID getTimerID()
           
(package private)  void postEvent(TimerFacilityImpl.TimerEventImpl timerEvent)
           
 void run()
          Method that is called when this task is scheduled for execution.
 
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

timerId

private TimerID timerId

activityContextId

private java.lang.String activityContextId

address

private Address address

timerOptions

private TimerOptions timerOptions

startTime

long startTime

numRepetitions

int numRepetitions

remainingRepetitions

int remainingRepetitions

missedRepetitions

int missedRepetitions

period

long period
Constructor Detail

TimerFacilityImpl.MyTimerTask

public TimerFacilityImpl.MyTimerTask(TimerID timerId,
                                     java.lang.String activityContextId,
                                     Address address,
                                     long startTime,
                                     long period,
                                     int numRepetitions,
                                     TimerOptions timerOptions)
Method Detail

getTimerID

TimerID getTimerID()

run

public void run()
Description copied from class: java.util.TimerTask
Method that is called when this task is scheduled for execution.

Specified by:
run in interface java.lang.Runnable

decrementRemainingRepetitions

private void decrementRemainingRepetitions()
Decrement remainingRepetitions by 1 if this is not an infinitely repeatable timer


postEvent

void postEvent(TimerFacilityImpl.TimerEventImpl timerEvent)

getActivityContextId

public java.lang.String getActivityContextId()