public interface UdpClientManager
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<UdpClient> |
getClient()
Gets the
UdpClient |
boolean |
isConnected()
Checks if
UdpClient is present, connected and not timed out |
void |
removeClient(UdpClientClosedEvent.Reason reason)
Disconnects and removes an udp client from the manager
|
void |
setClient(@NotNull UdpClient client)
Sets the
UdpClient |
void setClient(@NotNull
@NotNull UdpClient client)
UdpClientclient - UdpClientvoid removeClient(@NotNull
UdpClientClosedEvent.Reason reason)
reason - disconnect reasonboolean isConnected()
UdpClient is present, connected and not timed out