Interface StatusMatcherBuilderStep<BUILDER extends StatusMatcherBuilderStep<BUILDER>>

All Superinterfaces:
BuilderStep
All Known Subinterfaces:
RequestPatternBuilderStep<ReqT>
All Known Implementing Classes:
RequestPatternBuilderImpl, StatusMatcherBuilderImpl

public interface StatusMatcherBuilderStep<BUILDER extends StatusMatcherBuilderStep<BUILDER>> extends BuilderStep
Author:
Fadelis
  • Method Summary

    Modifier and Type
    Method
    Description
    withStatus(Predicate<io.grpc.Status> predicate)
    Adds a close Status matcher, which will check if the close status satisfies given predicate.
    default BUILDER
    withStatusCode(io.grpc.Status.Code code)
    Adds a close Status matcher, which will check if the close status has the given Status.Code.
    default BUILDER
    Adds a close Status matcher, which will check if the close status description is equal to given one.
    default BUILDER
    Adds a close Status matcher, which will check if the close status closed with Status.Code.OK.
  • Method Details

    • withStatus

      BUILDER withStatus(@Nonnull Predicate<io.grpc.Status> predicate)

      Adds 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.

    • withStatusCode

      default BUILDER withStatusCode(@Nonnull io.grpc.Status.Code code)

      Adds a close Status matcher, which will check if the close status has the given Status.Code.

      Subsequent status matchers will be added as additional conditions.

    • withStatusOk

      default BUILDER withStatusOk()

      Adds a close Status matcher, which will check if the close status closed with Status.Code.OK.

      Subsequent status matchers will be added as additional conditions.

    • withStatusMessage

      default BUILDER withStatusMessage(@Nullable String message)

      Adds a close Status matcher, which will check if the close status description is equal to given one.

      Subsequent status matchers will be added as additional conditions.