3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-13 10:45:51 +00:00

JavaDoc for WalletFiles constructor.

This commit is contained in:
Andreas Schildbach 2016-01-06 14:54:15 +01:00
parent feca024107
commit 1dd64534d0

View File

@ -65,6 +65,11 @@ public class WalletFiles {
void onAfterAutoSave(File newlySavedFile);
}
/**
* Initialize atomic and optionally delayed writing of the wallet file to disk. Note the initial wallet state isn't
* saved automatically. The {@link Wallet} calls {@link #saveNow()} or {@link #saveLater()} as wallet state changes,
* depending on the urgency of the changes.
*/
public WalletFiles(final Wallet wallet, File file, long delay, TimeUnit delayTimeUnit) {
// An executor that starts up threads when needed and shuts them down later.
this.executor = new ScheduledThreadPoolExecutor(1, new ContextPropagatingThreadFactory("Wallet autosave thread", Thread.MIN_PRIORITY));