Interface StatusMatcherBuilderStep<BUILDER extends StatusMatcherBuilderStep<BUILDER>>
- All Superinterfaces:
BuilderStep
- All Known Subinterfaces:
RequestPatternBuilderStep<ReqT>
- All Known Implementing Classes:
RequestPatternBuilderImpl,StatusMatcherBuilderImpl
- Author:
- Fadelis
-
Method Summary
Modifier and TypeMethodDescriptionwithStatus(Predicate<io.grpc.Status> predicate) Adds a closeStatusmatcher, which will check if the close status satisfies given predicate.default BUILDERwithStatusCode(io.grpc.Status.Code code) Adds a closeStatusmatcher, which will check if the close status has the givenStatus.Code.default BUILDERwithStatusMessage(String message) Adds a closeStatusmatcher, which will check if the close status description is equal to given one.default BUILDERAdds a closeStatusmatcher, which will check if the close status closed withStatus.Code.OK.
-
Method Details
-
withStatus
Adds a close
Statusmatcher, which will check if the close status satisfies given predicate.The status inside the predicate might be
nullif the request has not finished during the match invocation.Subsequent status matchers will be added as additional conditions.
-
withStatusCode
Adds a close
Statusmatcher, which will check if the close status has the givenStatus.Code.Subsequent status matchers will be added as additional conditions.
-
withStatusOk
Adds a close
Statusmatcher, which will check if the close status closed withStatus.Code.OK.Subsequent status matchers will be added as additional conditions.
-
withStatusMessage
Adds a close
Statusmatcher, which will check if the close status description is equal to given one.Subsequent status matchers will be added as additional conditions.
-