org.mobicents.media.server.testsuite.general
Interface Timer

All Known Implementing Classes:
TimerImpl

public interface Timer

Author:
kulikov

Method Summary
 int getHeartBeat()
          Gets value of interval between timer ticks.
 void setHeartBeat(int heartBeat)
          Modify interval between timer tick
 java.util.concurrent.ScheduledFuture synchronize(java.lang.Runnable task)
          Synchronizes task from this timer.
 

Method Detail

getHeartBeat

int getHeartBeat()
Gets value of interval between timer ticks.

Returns:
the int value in milliseconds.

setHeartBeat

void setHeartBeat(int heartBeat)
Modify interval between timer tick

Parameters:
heartBeat - the new value of interval in milliseconds.

synchronize

java.util.concurrent.ScheduledFuture synchronize(java.lang.Runnable task)
Synchronizes task from this timer.

Parameters:
task - the task to be synchronized.
Returns:
the action which can be canceled to unsynchronize previously synchronized task


Copyright © 2009. All Rights Reserved.