public class ClientNegotiationCompleteEvent extends ClientEventBase
Client
has successfully completed negotiation with the server.
At this time the client will begin to send queued messages which were not
essential to negotiating the connection.Constructor and Description |
---|
ClientNegotiationCompleteEvent(@NonNull Client client,
@NonNull Actor server,
@NonNull ServerInfo serverInfo)
Creates the event.
|
Modifier and Type | Method and Description |
---|---|
@NonNull Actor |
getServer()
Gets the server name to which the client has connected
|
@NonNull ServerInfo |
getServerInfo()
Gets information about the server to which the client is currently
connected.
|
protected @NonNull ToStringer |
toStringer()
Generates a partial
ToStringer for the command. |
getClient, toString
public ClientNegotiationCompleteEvent(@NonNull Client client, @NonNull Actor server, @NonNull ServerInfo serverInfo)
client
- client for which this is occurringserver
- the server to which the client is connectedserverInfo
- information about the serverpublic @NonNull Actor getServer()
public @NonNull ServerInfo getServerInfo()
ServerInfo.getAddress()
,
ServerInfo.getVersion()
protected @NonNull ToStringer toStringer()
ClientEventBase
ToStringer
for the command.toStringer
in class ClientEventBase
Copyright © 2013–2020 Kitteh. All rights reserved.