@Immutable public interface Log
The returned instance provides a copy of the data at the time of retrieval.
Any changes made to log entries will only apply to this instance of the log.
You can add to the log using the Storage, and then request an updated copy.
All methods are thread safe, and return immutable and thread safe collections.
| Modifier and Type | Method and Description |
|---|---|
SortedSet<LogEntry> |
getContent()
Get the content of the log
|
SortedMap<Integer,LogEntry> |
getGroupHistory(int pageNo,
String name)
Gets the log content for a given group, separated by page
|
SortedSet<LogEntry> |
getGroupHistory(String name)
Gets the log content for a given group
|
int |
getGroupHistoryMaxPages(String name)
Gets the max page number for the group history pages.
|
SortedSet<LogEntry> |
getRecent()
Get the content of the log
|
SortedMap<Integer,LogEntry> |
getRecent(int pageNo)
Gets the recent content separated by page
|
SortedMap<Integer,LogEntry> |
getRecent(int pageNo,
UUID actor)
Gets the recent content for a given actor, separated by page
|
SortedSet<LogEntry> |
getRecent(UUID actor)
Gets the recent content for a given actor
|
int |
getRecentMaxPages()
Gets the max page number for the recent pages.
|
int |
getRecentMaxPages(UUID actor)
Gets the max page number for the recent pages.
|
SortedMap<Integer,LogEntry> |
getSearch(int pageNo,
String query)
Gets the log content for a given search query, separated by page
|
SortedSet<LogEntry> |
getSearch(String query)
Gets the log content for a given search query
|
int |
getSearchMaxPages(String query)
Gets the max page number for the search query pages.
|
SortedMap<Integer,LogEntry> |
getTrackHistory(int pageNo,
String name)
Gets the log content for a given track, separated by page
|
SortedSet<LogEntry> |
getTrackHistory(String name)
Gets the log content for a given track
|
int |
getTrackHistoryMaxPages(String name)
Gets the max page number for the track history pages.
|
SortedMap<Integer,LogEntry> |
getUserHistory(int pageNo,
UUID uuid)
Gets the log content for a given user, separated by page
|
SortedSet<LogEntry> |
getUserHistory(UUID uuid)
Gets the log content for a given user
|
int |
getUserHistoryMaxPages(UUID uuid)
Gets the max page number for the user history pages.
|
@Nonnull SortedSet<LogEntry> getRecent()
@Nonnull SortedMap<Integer,LogEntry> getRecent(int pageNo)
pageNo - the page numberIllegalArgumentException - if the pageNo is less than 1IllegalStateException - if the log doesn't contain enough entries to populate the page. See getRecentMaxPages()int getRecentMaxPages()
getRecent(int) method@Nonnull SortedSet<LogEntry> getRecent(@Nonnull UUID actor)
actor - the uuid of the actor to filter by@Nonnull SortedMap<Integer,LogEntry> getRecent(int pageNo, @Nonnull UUID actor)
pageNo - the page numberactor - the uuid of the actor to filter byIllegalArgumentException - if the pageNo is less than 1IllegalStateException - if the log doesn't contain enough entries to populate the page. See getRecentMaxPages(UUID)int getRecentMaxPages(@Nonnull UUID actor)
actor - the actor to filter bygetRecent(int, UUID) method@Nonnull SortedSet<LogEntry> getUserHistory(@Nonnull UUID uuid)
uuid - the uuid to filter by@Nonnull SortedMap<Integer,LogEntry> getUserHistory(int pageNo, @Nonnull UUID uuid)
pageNo - the page numberuuid - the uuid of the acted user to filter byIllegalArgumentException - if the pageNo is less than 1IllegalStateException - if the log doesn't contain enough entries to populate the page. See getUserHistoryMaxPages(UUID)int getUserHistoryMaxPages(@Nonnull UUID uuid)
uuid - the uuid to filter bygetUserHistory(int, UUID) method@Nonnull SortedSet<LogEntry> getGroupHistory(@Nonnull String name)
name - the name to filter by@Nonnull SortedMap<Integer,LogEntry> getGroupHistory(int pageNo, @Nonnull String name)
pageNo - the page numbername - the name of the acted group to filter byIllegalArgumentException - if the pageNo is less than 1IllegalStateException - if the log doesn't contain enough entries to populate the page. See getGroupHistoryMaxPages(String)int getGroupHistoryMaxPages(@Nonnull String name)
name - the name to filter bygetGroupHistory(int, String) method@Nonnull SortedSet<LogEntry> getTrackHistory(@Nonnull String name)
name - the name to filter by@Nonnull SortedMap<Integer,LogEntry> getTrackHistory(int pageNo, @Nonnull String name)
pageNo - the page numbername - the name of the acted track to filter byIllegalArgumentException - if the pageNo is less than 1IllegalStateException - if the log doesn't contain enough entries to populate the page. See getTrackHistoryMaxPages(String)int getTrackHistoryMaxPages(@Nonnull String name)
name - the name to filter bygetTrackHistory(int, String) method@Nonnull SortedSet<LogEntry> getSearch(@Nonnull String query)
query - the query to filter by@Nonnull SortedMap<Integer,LogEntry> getSearch(int pageNo, @Nonnull String query)
pageNo - the page numberquery - the query to filter byIllegalArgumentException - if the pageNo is less than 1IllegalStateException - if the log doesn't contain enough entries to populate the page. See getSearchMaxPages(String)}int getSearchMaxPages(@Nonnull String query)
query - the query to filter bygetSearch(int, String) methodCopyright © 2018. All rights reserved.