@Environment(value=CLIENT) public class RealmsDataFetcher extends Object
Modifier and Type | Class and 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 |
Modifier and Type | Field and Description |
---|---|
private Map<RealmsDataFetcher.Task,Boolean> |
fetchStatus |
private boolean |
hasUnreadNews |
private RealmsServerPlayerLists |
livestats |
private ScheduledFuture<?> |
liveStatsScheduledFuture |
private Runnable |
liveStatsTask |
private static Logger |
LOGGER |
private String |
newsLink |
private ScheduledFuture<?> |
pendingInviteScheduledFuture |
private int |
pendingInvitesCount |
private Runnable |
pendingInviteUpdateTask |
private Set<RealmsServer> |
removedServers |
private ScheduledExecutorService |
scheduler |
private ScheduledFuture<?> |
serverListScheduledFuture |
private Runnable |
serverListUpdateTask |
private List<RealmsServer> |
servers |
private boolean |
stopped |
private Runnable |
trialAvailabilityTask |
private boolean |
trialAvailable |
private ScheduledFuture<?> |
trialAvailableScheduledFuture |
private ScheduledFuture<?> |
unreadNewsScheduledFuture |
private Runnable |
unreadNewsTask |
Constructor and Description |
---|
RealmsDataFetcher() |
Modifier and Type | Method and Description |
---|---|
private void |
cancelTasks() |
void |
forceUpdate() |
RealmsServerPlayerLists |
getLivestats() |
int |
getPendingInvitesCount() |
List<RealmsServer> |
getServers() |
boolean |
hasUnreadNews() |
void |
init() |
void |
initWithSpecificTaskList() |
private boolean |
isActive() |
boolean |
isFetchedSinceLastTry(RealmsDataFetcher.Task task) |
boolean |
isStopped() |
boolean |
isTrialAvailable() |
void |
markClean() |
String |
newsLink() |
void |
removeItem(RealmsServer server) |
private void |
scheduleTasks() |
private void |
setServers(List<RealmsServer> newServers) |
void |
stop() |
private static final Logger LOGGER
private final ScheduledExecutorService scheduler
private volatile boolean stopped
private final Runnable serverListUpdateTask
private final Runnable pendingInviteUpdateTask
private final Runnable trialAvailabilityTask
private final Runnable liveStatsTask
private final Runnable unreadNewsTask
private final Set<RealmsServer> removedServers
private List<RealmsServer> servers
private RealmsServerPlayerLists livestats
private int pendingInvitesCount
private boolean trialAvailable
private boolean hasUnreadNews
private String newsLink
private ScheduledFuture<?> serverListScheduledFuture
private ScheduledFuture<?> pendingInviteScheduledFuture
private ScheduledFuture<?> trialAvailableScheduledFuture
private ScheduledFuture<?> liveStatsScheduledFuture
private ScheduledFuture<?> unreadNewsScheduledFuture
private final Map<RealmsDataFetcher.Task,Boolean> fetchStatus
public boolean isStopped()
public void init()
public void initWithSpecificTaskList()
public boolean isFetchedSinceLastTry(RealmsDataFetcher.Task task)
public void markClean()
public void forceUpdate()
public List<RealmsServer> getServers()
public int getPendingInvitesCount()
public boolean isTrialAvailable()
public RealmsServerPlayerLists getLivestats()
public boolean hasUnreadNews()
public String newsLink()
public void stop()
private void scheduleTasks()
private void cancelTasks()
private void setServers(List<RealmsServer> newServers)
public void removeItem(RealmsServer server)
private boolean isActive()