Top Description Methods
com.mysql.cj.protocol

public Interface PacketSentTimeHolder

Known Direct Implementers
com.mysql.cj.protocol.a.TimeTrackingPacketSender, com.mysql.cj.protocol.x.SyncMessageSender

Holds the time the last packet was sent.

Method Summary

Modifier and TypeMethod and Description
public default long

Returns:

very recent packet send time
getLastPacketSentTime
()

Returns the send time of a very recent packet.

public default long

Returns:

previous packet send time
getPreviousPacketSentTime
()

Returns the send time of a previous packet.

Method Detail

getLastPacketSentTimeback to summary
public default long getLastPacketSentTime()

Returns the send time of a very recent packet. Should be used in exception generation when the send operation failed.

Returns:long

very recent packet send time

getPreviousPacketSentTimeback to summary
public default long getPreviousPacketSentTime()

Returns the send time of a previous packet. Should be used in exception generation when the send operation was successful but the following read operation failed.

Returns:long

previous packet send time