Package us.ajg0702.leaderboards.boards
Class TopManager
java.lang.Object
us.ajg0702.leaderboards.boards.TopManager
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanboardExists(String board) intvoidfetchExtra(UUID id, String placeholder) voidfetchExtraAsync(UUID id, String placeholder) intintgetBoardSize(String board) Get the size of a leaderboard (number of players)getCachedExtra(UUID id, String placeholder) getCachedStat(int position, String board, TimedType type) getCachedStat(PositionBoardType positionBoardType, boolean fetchIfAbsent) getCachedStatEntry(org.bukkit.OfflinePlayer player, String board, TimedType type) getCachedStatEntry(org.bukkit.OfflinePlayer player, String board, TimedType type, boolean fetchIfAbsent) intintlonggetLastReset(String board, TimedType type) intintgetRelative(org.bukkit.OfflinePlayer player, int difference, String board, TimedType type) Get a leaderboard positiongetStatEntry(org.bukkit.OfflinePlayer player, String board, TimedType type) Get a leaderboard positiondoubleGets the sum of all players on the leaderboardintvoidshutdown()Future<?>
- 
Field Details- 
positionPlayerCache
 
- 
- 
Constructor Details- 
TopManager
 
- 
- 
Method Details- 
shutdownpublic void shutdown()
- 
getStatGet a leaderboard position- Parameters:
- position- The position to get
- board- The board
- Returns:
- The StatEntry representing the position on the board
 
- 
getStatEntryGet a leaderboard position- Parameters:
- player- The position to get
- board- The board
- Returns:
- The StatEntry representing the position on the board
 
- 
getCachedStatEntry
- 
getCachedStatEntry
- 
getCachedStat
- 
getCachedStat
- 
getBoardSizeGet the size of a leaderboard (number of players)- Parameters:
- board- The board
- Returns:
- The number of players in that board
 
- 
getTotalGets the sum of all players on the leaderboard- Parameters:
- board- the board
- type- the timed type
- Returns:
- the sum of all players in the specified board for the specified timed type
 
- 
getBoards
- 
fetchBoardsAsyncpublic void fetchBoardsAsync()
- 
fetchBoards
- 
getFetchingpublic int getFetching()
- 
getFetchingAveragepublic int getFetchingAverage()
- 
getLastReset
- 
getExtra
- 
fetchExtra
- 
fetchExtraAsync
- 
getCachedExtra
- 
getRelative
- 
cacheTimepublic int cacheTime()
- 
getRolling
- 
getActiveFetcherspublic int getActiveFetchers()
- 
getMaxFetcherspublic int getMaxFetchers()
- 
getQueuedTaskspublic int getQueuedTasks()
- 
getWorkerspublic int getWorkers()
- 
boardExists
- 
submit
 
-