com.sleepycat.je.rep.impl.networkRestore
Class FeederManager.Lease
java.lang.Object
java.util.TimerTask
com.sleepycat.je.rep.impl.networkRestore.FeederManager.Lease
- All Implemented Interfaces:
- Runnable
- Enclosing class:
- FeederManager
class FeederManager.Lease
- extends TimerTask
Provides the lease mechanism used to maintain a handle to the DbBackup
object across Server client disconnects.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FeederManager.Lease
public FeederManager.Lease(int id,
long duration,
DbBackup dbbackup)
run
public void run()
- Specified by:
run
in interface Runnable
- Specified by:
run
in class TimerTask
terminate
public DbBackup terminate()
- Fetches the leased DbBackup instance and terminates the lease.
- Returns:
- the dbBackup instance, if the lease hasn't already been
terminated
getOpenDbBackup
public DbBackup getOpenDbBackup()
Copyright (c) 2004-2012 Oracle. All rights reserved.