Package com.mojang.realmsclient.gui.task
Class DataFetcher.Task<T>
java.lang.Object
com.mojang.realmsclient.gui.task.DataFetcher.Task<T>
- Enclosing class:
- DataFetcher
-
Field Summary
Modifier and TypeFieldDescriptionprivate final String
(package private) DataFetcher.SuccessfulComputationResult<T>
private long
private CompletableFuture<DataFetcher.ComputationResult<T>>
private final long
private final RepeatedDelayStrategy
-
Constructor Summary
ConstructorDescriptionTask
(String p_239074_, Callable<T> p_239075_, long p_239076_, RepeatedDelayStrategy p_239077_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
reset()
(package private) void
updateIfNeeded
(long p_239710_)
-
Field Details
-
id
-
updater
-
period
private final long period -
repeatStrategy
-
pendingTask
-
lastResult
-
nextUpdate
private long nextUpdate
-
-
Constructor Details
-
Task
Task(String p_239074_, Callable<T> p_239075_, long p_239076_, RepeatedDelayStrategy p_239077_)
-
-
Method Details
-
updateIfNeeded
void updateIfNeeded(long p_239710_) -
reset
public void reset()
-