public class NettyNetworkHandler extends Object implements NetworkHandler
Modifier and Type | Method and Description |
---|---|
@NonNull NettyConnection |
connect(Client.WithManagement client)
Starts a connection for a particular client.
|
static @NonNull NettyNetworkHandler |
getInstance()
Gets the single instance of this class.
|
@NonNull Resolver |
getResolver()
Gets the resolver used by this network handler.
|
void |
setResolver(@NonNull Resolver resolver)
Sets the resolver used by this network handler.
|
@NonNull String |
toString() |
public static @NonNull NettyNetworkHandler getInstance()
public @NonNull NettyConnection connect(Client.WithManagement client)
NetworkHandler
connect
in interface NetworkHandler
client
- client to connect forpublic @NonNull Resolver getResolver()
NetworkHandler
getResolver
in interface NetworkHandler
public void setResolver(@NonNull Resolver resolver)
NetworkHandler
setResolver
in interface NetworkHandler
resolver
- new resolverCopyright © 2013–2021 Kitteh. All rights reserved.