接口 PacketSentTimeHolder
-
- 所有已知实现类:
SyncMessageSender,TimeTrackingPacketSender
public interface PacketSentTimeHolderHolds the time the last packet was sent.
-
-
方法概要
所有方法 实例方法 默认方法 修饰符和类型 方法 说明 default longgetLastPacketSentTime()Returns the send time of a very recent packet.default longgetPreviousPacketSentTime()Returns the send time of a previous packet.
-
-
-
方法详细资料
-
getLastPacketSentTime
default long getLastPacketSentTime()
Returns the send time of a very recent packet. Should be used in exception generation when the send operation failed.- 返回:
- 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.- 返回:
- previous packet send time
-
-