Home
last modified time | relevance | path

Searched refs:pingFuture (Results 1 – 3 of 3) sorted by relevance

/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/
DKeepAliveManager.java44 private ScheduledFuture<?> pingFuture; field in KeepAliveManager
65 pingFuture = null;
76 pingFuture = scheduler.schedule(
175 checkState(pingFuture == null, "There should be no outstanding pingFuture"); in onDataReceived()
176 pingFuture = scheduler.schedule(sendPing, keepAliveTimeInNanos, TimeUnit.NANOSECONDS); in onDataReceived()
188 if (pingFuture == null) { in onTransportActive()
189 pingFuture = scheduler.schedule( in onTransportActive()
223 if (pingFuture != null) { in onTransportTermination()
224 pingFuture.cancel(false); in onTransportTermination()
225 pingFuture = null; in onTransportTermination()
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/
DKeepAliveManagerTest.java225 ScheduledFuture<?> pingFuture = mock(ScheduledFuture.class); in transportGoesIdle() local
226 doReturn(pingFuture) in transportGoesIdle()
312 ScheduledFuture<?> pingFuture = mock(ScheduledFuture.class); in transportGoesIdleBeforePingSent() local
313 doReturn(pingFuture) in transportGoesIdleBeforePingSent()
331 ScheduledFuture<?> pingFuture = mock(ScheduledFuture.class); in transportShutsdownAfterPingScheduled() local
332 doReturn(pingFuture) in transportShutsdownAfterPingScheduled()
341 verify(pingFuture).cancel(isA(Boolean.class)); in transportShutsdownAfterPingScheduled()
/external/grpc-grpc-java/netty/src/main/java/io/grpc/netty/
DNettyServerHandler.java803 ChannelFuture pingFuture = encoder().writePing( in ping() local
807 pingFuture.addListener(new ChannelFutureListener() { in ping()
852 Future<?> pingFuture; field in NettyServerHandler.GracefulShutdown
871 pingFuture = ctx.executor().schedule( in start()
890 checkNotNull(pingFuture, "pingFuture"); in secondGoAwayAndClose()
891 pingFuture.cancel(false); in secondGoAwayAndClose()