public class StatusMatcherBuilderImpl extends Object implements StatusMatcherBuilderStep<StatusMatcherBuilderImpl>
| Modifier and Type | Method and Description |
|---|---|
StatusMatcher |
build() |
StatusMatcherBuilderImpl |
withStatus(Predicate<io.grpc.Status> predicate)
Adds a close
Status matcher, which will check if the close status satisfies given predicate. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwithStatusCode, withStatusMessage, withStatusOkpublic StatusMatcherBuilderImpl withStatus(@Nonnull Predicate<io.grpc.Status> predicate)
StatusMatcherBuilderStepAdds a close Status matcher, which will check if the close status satisfies given predicate.
The status inside the predicate might be null if the request has not finished during the match invocation.
Subsequent status matchers will be added as additional conditions.
withStatus in interface StatusMatcherBuilderStep<StatusMatcherBuilderImpl>public StatusMatcher build()
Copyright © 2023. All rights reserved.