public class ServerFinder extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ServerFinder.Filter
Class that describe a filter to apply on the servers
|
| Modifier and Type | Method and Description |
|---|---|
static ServerFinder |
filterBy(ServerFinder.Filter... filters) |
List<Server> |
find()
Find and return all the servers that match the filters
|
Optional<Server> |
findOne()
Attempt to find one server that match the filters
|
Optional<Server> |
scanAndFindOne(@NonNull Duration timeout)
Attempt to find one server that match the filters while scanning the network for new servers
|
public static ServerFinder filterBy(ServerFinder.Filter... filters)
public List<Server> find()
public Optional<Server> findOne()
Copyright © 2024 SiLA Java Developers. All rights reserved.