com.sun.jini.mahalo
Class LeaseExpirationMgr.Canceler

java.lang.Object
  extended by com.sun.jini.mahalo.LeaseExpirationMgr.Canceler
All Implemented Interfaces:
Runnable
Enclosing class:
LeaseExpirationMgr

private class LeaseExpirationMgr.Canceler
extends Object
implements Runnable

Objects that do the actually cancel the resource in question, stuck in WakeupManager


Field Summary
private  WeakReference resourceRef
           
 
Constructor Summary
LeaseExpirationMgr.Canceler(LeasedResource resource)
          Create a Canceler for the passed resource
 
Method Summary
 void run()
          Check the associated resource's expiration against the current time, canceling the resource if its time has passed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resourceRef

private final WeakReference resourceRef
Constructor Detail

LeaseExpirationMgr.Canceler

LeaseExpirationMgr.Canceler(LeasedResource resource)
Create a Canceler for the passed resource

Method Detail

run

public void run()
Check the associated resource's expiration against the current time, canceling the resource if its time has passed. Synchronize on the resource before checking the expiration time.

Specified by:
run in interface Runnable


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