Package com.linkedin.alpini.netty4.pool
Class Http2PingHelper
- java.lang.Object
-
- com.linkedin.alpini.netty4.pool.Http2PingHelper
-
- All Implemented Interfaces:
Http2PingCallListener
public class Http2PingHelper extends java.lang.Object implements Http2PingCallListener
-
-
Constructor Summary
Constructors Constructor Description Http2PingHelper()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcallClose(long pingId, long timeNanos)voidcallCloseWithError(long pingId, long timeNanos)voidcallStart(long pingId, long timeNanos)Http2PingSendHandlercreateHttp2PingSendHandler()com.linkedin.alpini.netty4.pool.Http2PingHelper.LatestPingCallTimeTrackercreateLatestPingCallTimeTracker()CallTrackercreatePingCallTracker()doublegetAvgResponseTimeOfLatestPings()Http2PingSendHandlergetHttp2PingSendHandler()booleanisCallComplete(long pingId)static doublenanoToMillis(double nanos)CallTrackerpingCallTracker()voidsendPing(io.netty.channel.Channel channel)
-
-
-
Method Detail
-
createPingCallTracker
public CallTracker createPingCallTracker()
-
createLatestPingCallTimeTracker
public com.linkedin.alpini.netty4.pool.Http2PingHelper.LatestPingCallTimeTracker createLatestPingCallTimeTracker()
-
createHttp2PingSendHandler
public Http2PingSendHandler createHttp2PingSendHandler()
-
sendPing
public void sendPing(@Nonnull io.netty.channel.Channel channel)
-
pingCallTracker
public CallTracker pingCallTracker()
-
getAvgResponseTimeOfLatestPings
public double getAvgResponseTimeOfLatestPings()
-
getHttp2PingSendHandler
public Http2PingSendHandler getHttp2PingSendHandler()
-
callStart
public void callStart(long pingId, long timeNanos)- Specified by:
callStartin interfaceHttp2PingCallListener
-
callClose
public void callClose(long pingId, long timeNanos)- Specified by:
callClosein interfaceHttp2PingCallListener
-
callCloseWithError
public void callCloseWithError(long pingId, long timeNanos)- Specified by:
callCloseWithErrorin interfaceHttp2PingCallListener
-
isCallComplete
public boolean isCallComplete(long pingId)
- Specified by:
isCallCompletein interfaceHttp2PingCallListener
-
nanoToMillis
public static double nanoToMillis(double nanos)
-
-