com.sun.jini.thread
Class WakeupManager.Ticket

java.lang.Object
  extended bycom.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()

equals

public boolean equals(Object o)

hashCode

public int hashCode()

compareTo

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


Copyright 2007, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.