net.tomp2p.futures
Interface FutureCleanup
- All Known Implementing Classes:
- FutureDHT, FutureTracker
public interface FutureCleanup
Some futures have a longer life span than others. Typically, a future sets completed to true and thats it, but
FutureTracker and FutureDHT may keep track of futures created based on an initial future. To shutdown / cleanup those
up, we use this interface.
- Author:
- Thomas Bocek
addCleanup
void addCleanup(Cancellable cancellable)
- Call to add cleanup classes for the future e.g. to stop creating more scheduled futures.
- Parameters:
cancellable
- The cleanup classes
Copyright © 2013. All Rights Reserved.