com.sun.jini.mahalo
Class LeaseExpirationMgr.Canceler
java.lang.Object
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
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 |
resourceRef
private final WeakReference resourceRef
LeaseExpirationMgr.Canceler
LeaseExpirationMgr.Canceler(LeasedResource resource)
- Create a
Canceler
for the passed resource
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.