Package com.mojang.realmsclient.gui
Class RealmsDataFetcher
- java.lang.Object
-
- com.mojang.realmsclient.gui.RealmsDataFetcher
-
public class RealmsDataFetcher extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
RealmsDataFetcher.LiveStatsTask
(package private) class
RealmsDataFetcher.PendingInviteUpdateTask
(package private) class
RealmsDataFetcher.ServerListUpdateTask
static class
RealmsDataFetcher.Task
(package private) class
RealmsDataFetcher.TrialAvailabilityTask
(package private) class
RealmsDataFetcher.UnreadNewsTask
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<RealmsDataFetcher.Task,java.lang.Boolean>
fetchStatus
private boolean
hasUnreadNews
private RealmsServerPlayerLists
livestats
private java.util.concurrent.ScheduledFuture<?>
liveStatsScheduledFuture
private java.lang.Runnable
liveStatsTask
private static org.apache.logging.log4j.Logger
LOGGER
private java.lang.String
newsLink
private java.util.concurrent.ScheduledFuture<?>
pendingInviteScheduledFuture
private int
pendingInvitesCount
private java.lang.Runnable
pendingInviteUpdateTask
private java.util.Set<RealmsServer>
removedServers
private java.util.concurrent.ScheduledExecutorService
scheduler
private java.util.concurrent.ScheduledFuture<?>
serverListScheduledFuture
private java.lang.Runnable
serverListUpdateTask
private java.util.List<RealmsServer>
servers
private boolean
stopped
private java.lang.Runnable
trialAvailabilityTask
private boolean
trialAvailable
private java.util.concurrent.ScheduledFuture<?>
trialAvailableScheduledFuture
private java.util.concurrent.ScheduledFuture<?>
unreadNewsScheduledFuture
private java.lang.Runnable
unreadNewsTask
-
Constructor Summary
Constructors Constructor Description RealmsDataFetcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
cancelTasks()
void
forceUpdate()
RealmsServerPlayerLists
getLivestats()
int
getPendingInvitesCount()
java.util.List<RealmsServer>
getServers()
boolean
hasUnreadNews()
void
init()
void
initWithSpecificTaskList()
private boolean
isActive()
boolean
isFetchedSinceLastTry(RealmsDataFetcher.Task p_225083_1_)
boolean
isStopped()
boolean
isTrialAvailable()
void
markClean()
java.lang.String
newsLink()
void
removeItem(RealmsServer p_225085_1_)
private void
scheduleTasks()
private void
setServers(java.util.List<RealmsServer> p_225080_1_)
void
stop()
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
scheduler
private final java.util.concurrent.ScheduledExecutorService scheduler
-
stopped
private volatile boolean stopped
-
serverListUpdateTask
private final java.lang.Runnable serverListUpdateTask
-
pendingInviteUpdateTask
private final java.lang.Runnable pendingInviteUpdateTask
-
trialAvailabilityTask
private final java.lang.Runnable trialAvailabilityTask
-
liveStatsTask
private final java.lang.Runnable liveStatsTask
-
unreadNewsTask
private final java.lang.Runnable unreadNewsTask
-
removedServers
private final java.util.Set<RealmsServer> removedServers
-
servers
private java.util.List<RealmsServer> servers
-
livestats
private RealmsServerPlayerLists livestats
-
pendingInvitesCount
private int pendingInvitesCount
-
trialAvailable
private boolean trialAvailable
-
hasUnreadNews
private boolean hasUnreadNews
-
newsLink
private java.lang.String newsLink
-
serverListScheduledFuture
private java.util.concurrent.ScheduledFuture<?> serverListScheduledFuture
-
pendingInviteScheduledFuture
private java.util.concurrent.ScheduledFuture<?> pendingInviteScheduledFuture
-
trialAvailableScheduledFuture
private java.util.concurrent.ScheduledFuture<?> trialAvailableScheduledFuture
-
liveStatsScheduledFuture
private java.util.concurrent.ScheduledFuture<?> liveStatsScheduledFuture
-
unreadNewsScheduledFuture
private java.util.concurrent.ScheduledFuture<?> unreadNewsScheduledFuture
-
fetchStatus
private final java.util.Map<RealmsDataFetcher.Task,java.lang.Boolean> fetchStatus
-
-
Method Detail
-
isStopped
public boolean isStopped()
-
init
public void init()
-
initWithSpecificTaskList
public void initWithSpecificTaskList()
-
isFetchedSinceLastTry
public boolean isFetchedSinceLastTry(RealmsDataFetcher.Task p_225083_1_)
-
markClean
public void markClean()
-
forceUpdate
public void forceUpdate()
-
getServers
public java.util.List<RealmsServer> getServers()
-
getPendingInvitesCount
public int getPendingInvitesCount()
-
isTrialAvailable
public boolean isTrialAvailable()
-
getLivestats
public RealmsServerPlayerLists getLivestats()
-
hasUnreadNews
public boolean hasUnreadNews()
-
newsLink
public java.lang.String newsLink()
-
stop
public void stop()
-
scheduleTasks
private void scheduleTasks()
-
cancelTasks
private void cancelTasks()
-
setServers
private void setServers(java.util.List<RealmsServer> p_225080_1_)
-
removeItem
public void removeItem(RealmsServer p_225085_1_)
-
isActive
private boolean isActive()
-
-