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 void
callClose(long pingId, long timeNanos)
void
callCloseWithError(long pingId, long timeNanos)
void
callStart(long pingId, long timeNanos)
Http2PingSendHandler
createHttp2PingSendHandler()
com.linkedin.alpini.netty4.pool.Http2PingHelper.LatestPingCallTimeTracker
createLatestPingCallTimeTracker()
CallTracker
createPingCallTracker()
double
getAvgResponseTimeOfLatestPings()
Http2PingSendHandler
getHttp2PingSendHandler()
boolean
isCallComplete(long pingId)
static double
nanoToMillis(double nanos)
CallTracker
pingCallTracker()
void
sendPing(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:
callStart
in interfaceHttp2PingCallListener
-
callClose
public void callClose(long pingId, long timeNanos)
- Specified by:
callClose
in interfaceHttp2PingCallListener
-
callCloseWithError
public void callCloseWithError(long pingId, long timeNanos)
- Specified by:
callCloseWithError
in interfaceHttp2PingCallListener
-
isCallComplete
public boolean isCallComplete(long pingId)
- Specified by:
isCallComplete
in interfaceHttp2PingCallListener
-
nanoToMillis
public static double nanoToMillis(double nanos)
-
-