From 1dd64534d0eb1ec19113dbc8f3d924c1ccb0a852 Mon Sep 17 00:00:00 2001 From: Andreas Schildbach Date: Wed, 6 Jan 2016 14:54:15 +0100 Subject: [PATCH] JavaDoc for WalletFiles constructor. --- core/src/main/java/org/bitcoinj/wallet/WalletFiles.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/src/main/java/org/bitcoinj/wallet/WalletFiles.java b/core/src/main/java/org/bitcoinj/wallet/WalletFiles.java index 01db8bf4..2d5cb29b 100644 --- a/core/src/main/java/org/bitcoinj/wallet/WalletFiles.java +++ b/core/src/main/java/org/bitcoinj/wallet/WalletFiles.java @@ -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));