Package com.mysql.cj.protocol
Interface PacketSentTimeHolder
- All Known Implementing Classes:
SyncMessageSender
,TimeTrackingPacketSender
public interface PacketSentTimeHolder
Holds the time the last packet was sent.
-
Method Summary
Modifier and Type Method Description default long
getLastPacketSentTime()
Returns the send time of a very recent packet.default long
getPreviousPacketSentTime()
Returns the send time of a previous packet.
-
Method Details
-
getLastPacketSentTime
default long getLastPacketSentTime()Returns the send time of a very recent packet. Should be used in exception generation when the send operation failed.- Returns:
- very recent packet send time
-
getPreviousPacketSentTime
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:
- previous packet send time
-