Home
last modified time | relevance | path

Searched refs:withDeadlineAfter (Results 1 – 13 of 13) sorted by relevance

/external/grpc-grpc-java/stub/src/main/java/io/grpc/stub/
DAbstractStub.java123 public final S withDeadlineAfter(long duration, TimeUnit unit) { in withDeadlineAfter() method in AbstractStub
124 return build(channel, callOptions.withDeadlineAfter(duration, unit)); in withDeadlineAfter()
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/
DClientCallImplTest.java656 CallOptions callOptions = baseCallOptions.withDeadlineAfter(0, TimeUnit.SECONDS); in deadlineExceededBeforeCallStarted()
678 .withDeadlineAfter(1000, TimeUnit.MILLISECONDS, deadlineCancellationExecutor); in contextDeadlineShouldBePropagatedToStream()
702 .withDeadlineAfter(1000, TimeUnit.MILLISECONDS, deadlineCancellationExecutor); in contextDeadlineShouldOverrideLargerCallOptionsDeadline()
705 CallOptions callOpts = baseCallOptions.withDeadlineAfter(2000, TimeUnit.MILLISECONDS); in contextDeadlineShouldOverrideLargerCallOptionsDeadline()
727 .withDeadlineAfter(2000, TimeUnit.MILLISECONDS, deadlineCancellationExecutor); in contextDeadlineShouldNotOverrideSmallerCallOptionsDeadline()
730 CallOptions callOpts = baseCallOptions.withDeadlineAfter(1000, TimeUnit.MILLISECONDS); in contextDeadlineShouldNotOverrideSmallerCallOptionsDeadline()
751 CallOptions callOpts = baseCallOptions.withDeadlineAfter(1000, TimeUnit.MILLISECONDS); in callOptionsDeadlineShouldBePropagatedToStream()
810 .withDeadlineAfter(1, TimeUnit.SECONDS, deadlineCancellationExecutor); in expiredDeadlineCancelsStream_Context()
DManagedChannelImplTest.java302 channel.newCall(method, CallOptions.DEFAULT.withDeadlineAfter(0, TimeUnit.NANOSECONDS)); in immediateDeadlineExceeded()
2789 CallOptions.DEFAULT.withDeadlineAfter(5, TimeUnit.SECONDS)); in badServiceConfigIsRecoverable()
/external/grpc-grpc-java/core/src/test/java/io/grpc/
DCallOptionsTest.java134 public void withDeadlineAfter() { in withDeadlineAfter() method in CallOptionsTest
135 Deadline actual = CallOptions.DEFAULT.withDeadlineAfter(1, MINUTES).getDeadline(); in withDeadlineAfter()
DClientInterceptorsTest.java217 final CallOptions initialCallOptions = CallOptions.DEFAULT.withDeadlineAfter(100, NANOSECONDS); in callOptions()
218 final CallOptions newCallOptions = initialCallOptions.withDeadlineAfter(300, NANOSECONDS); in callOptions()
DContextsTest.java218 .withDeadlineAfter(100, TimeUnit.NANOSECONDS, fakeClock.getScheduledExecutorService()); in statusFromCancelled_TimeoutExceptionShouldMapToDeadlineExceeded()
/external/grpc-grpc-java/interop-testing/src/test/java/io/grpc/stub/
DStubConfigTest.java90 stub = stub.withDeadlineAfter(2, NANOSECONDS); in testStubCallOptionsPopulatedToNewCall()
/external/grpc-grpc-java/interop-testing/src/main/java/io/grpc/testing/integration/
DAbstractInteropTest.java1054 blockingStub.withDeadlineAfter(configuredTimeoutMinutes, TimeUnit.MINUTES); in sendsTimeoutHeader()
1070 .withDeadlineAfter(10, TimeUnit.SECONDS) in deadlineNotExceeded()
1082 blockingStub.withDeadlineAfter(10, TimeUnit.MILLISECONDS); in deadlineExceeded()
1125 .withDeadlineAfter(30, TimeUnit.MILLISECONDS) in deadlineExceededServerStreaming()
1150 .withDeadlineAfter(-10, TimeUnit.SECONDS) in deadlineInPast()
1173 .withDeadlineAfter(-10, TimeUnit.SECONDS) in deadlineInPast()
1601 asyncStub.withDeadlineAfter(1, TimeUnit.MILLISECONDS); in timeoutOnSleepingServer()
1765 blockingStub.withDeadlineAfter(5, TimeUnit.SECONDS); in obtainRemoteClientAddr()
1775 blockingStub.withDeadlineAfter(5, TimeUnit.SECONDS); in obtainLocalClientAddr()
1785 blockingStub.withDeadlineAfter(5, TimeUnit.SECONDS); in assertX500SubjectDn()
/external/grpc-grpc-java/core/src/main/java/io/grpc/
DCallOptions.java131 public CallOptions withDeadlineAfter(long duration, TimeUnit unit) { in withDeadlineAfter() method in CallOptions
/external/grpc-grpc-java/services/src/test/java/io/grpc/services/
DBinlogHelperTest.java932 .withDeadlineAfter(1, TimeUnit.SECONDS, Executors.newSingleThreadScheduledExecutor()) in serverDeadlineLogged()
990 CallOptions.DEFAULT.withDeadlineAfter(1, TimeUnit.SECONDS), in clientDeadlineLogged_deadlineSetViaCallOption()
1043 CallOptions.DEFAULT.withDeadlineAfter(1, TimeUnit.SECONDS), in clientDeadlineLogged_deadlineSetViaContext()
1295 CallOptions.DEFAULT.withDeadlineAfter(1, TimeUnit.SECONDS), in clientInterceptor_trailersOnlyResponseLogsPeerAddress()
/external/grpc-grpc-java/context/src/main/java/io/grpc/
DContext.java269 public CancellableContext withDeadlineAfter(long duration, TimeUnit unit, in withDeadlineAfter() method in Context
/external/grpc-grpc-java/context/src/test/java/io/grpc/
DContextTest.java586 Context.ROOT.withDeadlineAfter(1, TimeUnit.SECONDS, scheduler); in contextWithDeadlineHasDeadline()
750 Context.CancellableContext context = parent.withDeadlineAfter(0, TimeUnit.SECONDS, scheduler); in expiredDeadlineShouldCancelContextImmediately()
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/
DServerImpl.java508 Context.CancellableContext context = baseContext.withDeadlineAfter( in createContext()