File tree Expand file tree Collapse file tree
src/main/java/com/flowingcode/vaadin/addons/simpletimer Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -159,12 +159,16 @@ public CompletableFuture<BigDecimal> getCurrentTimeAsync() {
159159
160160 /**
161161 * Adds a property change listener for the {@code currentTime} property
162+ *
163+ * @param listener the property change listener
164+ * @param period the minimum period between listener invocations, or 0 to disable throttling
165+ * @param periodUnit time duration of throttling period
162166 *
163- * @return current value in seconds
167+ * @return this registration, for chaining
164168 */
165169 public Registration addCurrentTimeChangeListener (
166- PropertyChangeListener listener , long time , TimeUnit timeUnit ) {
167- int millis = (int ) Math .min (timeUnit .toMillis (time ), Integer .MAX_VALUE );
170+ PropertyChangeListener listener , long period , TimeUnit periodUnit ) {
171+ int millis = (int ) Math .min (periodUnit .toMillis (period ), Integer .MAX_VALUE );
168172 if (listener == null ) {
169173 listener = ev -> {};
170174 }
You can’t perform that action at this time.
0 commit comments