Class Auctioneer.AuctionCompletedTask

java.lang.Object
  extended by java.util.TimerTask
      extended by Auctioneer.AuctionCompletedTask
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
Auctioneer

private class Auctioneer.AuctionCompletedTask
extends java.util.TimerTask

inner class that extends a TimerTask to provide a callback (run()) that invokes the auctioneer's auctionCompleted() method. Auctioneer operation. When the timer expires, the JVM invokes the run() method. Derived from the "Complete Auction" use case.


Constructor Summary
Auctioneer.AuctionCompletedTask(Auctioneer auctioneer)
          constructs the task.
 
Method Summary
 void run()
          the action to be performed by this task when timer expires.
 
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Auctioneer.AuctionCompletedTask

Auctioneer.AuctionCompletedTask(Auctioneer auctioneer)
constructs the task. Save the auctioneer object.

Parameters:
auctioneer - the Auctioneer object.
See Also:
Auctioneer
Method Detail

run

public void run()
the action to be performed by this task when timer expires.

Specified by:
run in interface java.lang.Runnable
Specified by:
run in class java.util.TimerTask
See Also:
Auctioneer