public final class ConnectionContext extends Object implements CodecContext
WARNING: Do NOT change any data outside of this project, try configure ConnectionFactoryOptions or
MySqlConnectionConfiguration to control connection context and client behavior.
| Modifier and Type | Method and Description |
|---|---|
Capability |
getCapability()
Get the connection capability.
|
CharCollation |
getClientCollation()
Get the
CharCollation that the client is using. |
int |
getConnectionId()
Get the connection identifier that is specified by server.
|
short |
getServerStatuses()
Get the bitmap of server statuses.
|
ServerVersion |
getServerVersion()
Get the MySQL server version, which is available after database user logon.
|
ZoneId |
getServerZoneId()
Get the
ZoneId of server-side. |
ZeroDateOption |
getZeroDateOption()
Get the option for zero date handling which is set by connection configuration.
|
void |
init(int connectionId,
ServerVersion version,
Capability capability)
Initializes this context.
|
void |
setServerStatuses(short serverStatuses)
Updates server statuses.
|
public int getConnectionId()
public void init(int connectionId,
ServerVersion version,
Capability capability)
connectionId - the connection identifier that is specified by server.version - the server version.capability - the connection capabilities.public ServerVersion getServerVersion()
CodecContextgetServerVersion in interface CodecContextServerVersion.public CharCollation getClientCollation()
CodecContextCharCollation that the client is using.getClientCollation in interface CodecContextCharCollation.public ZoneId getServerZoneId()
CodecContextZoneId of server-side.getServerZoneId in interface CodecContextZoneId.public ZeroDateOption getZeroDateOption()
CodecContextgetZeroDateOption in interface CodecContextZeroDateOption.public short getServerStatuses()
public void setServerStatuses(short serverStatuses)
serverStatuses - the bitmap of server statuses.public Capability getCapability()
Copyright © 2018–2023 asyncer.io. All rights reserved.