Home
last modified time | relevance | path

Searched refs:timerServicePool (Results 1 – 2 of 2) sorted by relevance

/external/grpc-grpc-java/grpclb/src/main/java/io/grpc/grpclb/
DGrpclbLoadBalancer.java49 private final ObjectPool<ScheduledExecutorService> timerServicePool; field in GrpclbLoadBalancer
60 ObjectPool<ScheduledExecutorService> timerServicePool, in GrpclbLoadBalancer() argument
64 this.timerServicePool = checkNotNull(timerServicePool, "timerServicePool"); in GrpclbLoadBalancer()
65 this.timerService = checkNotNull(timerServicePool.getObject(), "timerService"); in GrpclbLoadBalancer()
116 timerService = timerServicePool.returnObject(timerService); in shutdown()
/external/grpc-grpc-java/grpclb/src/test/java/io/grpc/grpclb/
DGrpclbLoadBalancerTest.java168 private ObjectPool<ScheduledExecutorService> timerServicePool; field in GrpclbLoadBalancerTest
251 when(timerServicePool.getObject()).thenReturn(timerService); in setUp()
258 timerServicePool, in setUp()
709 verify(timerServicePool).getObject(); in acquireAndReleaseScheduledExecutor()
710 verifyNoMoreInteractions(timerServicePool); in acquireAndReleaseScheduledExecutor()
713 verify(timerServicePool).returnObject(same(fakeClock.getScheduledExecutorService())); in acquireAndReleaseScheduledExecutor()
714 verifyNoMoreInteractions(timerServicePool); in acquireAndReleaseScheduledExecutor()