Class MemoryServerListProvider
- java.lang.Object
-
- in.dragonbra.javasteam.steam.discovery.MemoryServerListProvider
-
- All Implemented Interfaces:
IServerListProvider
public class MemoryServerListProvider extends java.lang.Object implements IServerListProvider
A server list provider that uses an in-memory list
-
-
Constructor Summary
Constructors Constructor Description MemoryServerListProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<ServerRecord>fetchServerList()Returns the stored server list in memoryvoidupdateServerList(java.util.List<ServerRecord> endpoints)Stores the supplied list of servers in memory
-
-
-
Method Detail
-
fetchServerList
public java.util.List<ServerRecord> fetchServerList()
Returns the stored server list in memory- Specified by:
fetchServerListin interfaceIServerListProvider- Returns:
- List of servers if persisted, otherwise an empty list
-
updateServerList
public void updateServerList(java.util.List<ServerRecord> endpoints)
Stores the supplied list of servers in memory- Specified by:
updateServerListin interfaceIServerListProvider- Parameters:
endpoints- List of endpoints (servers)
-
-