GigaSpaces XAP 9.0 API

com.sun.jini.thread
Class WakeupManager.Ticket

java.lang.Object
  extended by com.sun.jini.thread.WakeupManager.Ticket
All Implemented Interfaces:
Comparable
Enclosing class:
WakeupManager

public static class WakeupManager.Ticket
extends Object
implements Comparable

A ticket that can be used for cancelling a future task. It describes the task itself as well. The WakeupManager.newTicket method can be used by subclasses of WakeupManager to create new Ticket instances.


Field Summary
 WakeupManager.ThreadDesc desc
          The ThreadDesc, or null if none.
 Runnable task
          The task object to be executed
 long when
          When the task should occur.
 
Method Summary
 int compareTo(Object o)
           
 boolean equals(Object o)
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

when

public final long when
When the task should occur.


task

public final Runnable task
The task object to be executed


desc

public final WakeupManager.ThreadDesc desc
The ThreadDesc, or null if none.

Method Detail

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable

GigaSpaces XAP 9.0 API

Copyright © GigaSpaces.