akka.actor
Class LightArrayRevolverScheduler.TaskHolder

java.lang.Object
  extended by akka.actor.LightArrayRevolverScheduler.TaskHolder
All Implemented Interfaces:
Cancellable, LightArrayRevolverScheduler.TimerTask, java.lang.Runnable
Enclosing class:
LightArrayRevolverScheduler

protected static class LightArrayRevolverScheduler.TaskHolder
extends java.lang.Object
implements LightArrayRevolverScheduler.TimerTask

INTERNAL API


Constructor Summary
LightArrayRevolverScheduler.TaskHolder(java.lang.Runnable task, int ticks, scala.concurrent.ExecutionContext executionContext)
           
 
Method Summary
 boolean cancel()
          Cancels this Cancellable and returns true if that was successful.
 boolean isCancelled()
          Returns true if and only if this Cancellable has been successfully cancelled
 void run()
           
 java.lang.Runnable task()
           
 int ticks()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LightArrayRevolverScheduler.TaskHolder

public LightArrayRevolverScheduler.TaskHolder(java.lang.Runnable task,
                                              int ticks,
                                              scala.concurrent.ExecutionContext executionContext)
Method Detail

task

public java.lang.Runnable task()

ticks

public int ticks()

run

public void run()
Specified by:
run in interface java.lang.Runnable

cancel

public boolean cancel()
Description copied from interface: Cancellable
Cancels this Cancellable and returns true if that was successful. If this cancellable was (concurrently) cancelled already, then this method will return false although isCancelled will return true.

Java & Scala API

Specified by:
cancel in interface Cancellable

isCancelled

public boolean isCancelled()
Description copied from interface: Cancellable
Returns true if and only if this Cancellable has been successfully cancelled

Java & Scala API

Specified by:
isCancelled in interface Cancellable