org.mobicents.media.server.spi.clock
Interface Task


public interface Task

Represents sporadic task which is executed by Scheduler.

Author:
kulikov

Method Summary
 void cancel()
          Cancels task execution.
 boolean isActive()
          Indicates is this task is active or canceled.
 int perform()
          Executes logic of this task.
 

Method Detail

cancel

void cancel()
Cancels task execution.


isActive

boolean isActive()
Indicates is this task is active or canceled.

Returns:
true if this task is still active and false if this task is canceled.

perform

int perform()
Executes logic of this task.

Returns:
the delay for next run.


Copyright © 2011. All Rights Reserved.