Module brave.rpc
Package brave.rpc

Class RpcRequestMatchers


  • public final class RpcRequestMatchers
    extends java.lang.Object
    Null safe matchers for use in RpcRuleSampler.
    Since:
    5.8
    See Also:
    Matchers
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <Req extends RpcRequest>
      Matcher<Req>
      methodEquals​(java.lang.String method)
      Matcher for case-sensitive RPC method names, such as "Report" or "EXISTS"
      static <Req extends RpcRequest>
      Matcher<Req>
      serviceEquals​(java.lang.String service)
      Matcher for case-sensitive RPC service names, such as "grpc.health.v1.Health" or "scribe"
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RpcRequestMatchers

        public RpcRequestMatchers()
    • Method Detail

      • methodEquals

        public static <Req extends RpcRequestMatcher<Req> methodEquals​(java.lang.String method)
        Matcher for case-sensitive RPC method names, such as "Report" or "EXISTS"
        Since:
        5.8
        See Also:
        RpcRequest.method()
      • serviceEquals

        public static <Req extends RpcRequestMatcher<Req> serviceEquals​(java.lang.String service)
        Matcher for case-sensitive RPC service names, such as "grpc.health.v1.Health" or "scribe"
        Since:
        5.8
        See Also:
        RpcRequest.service()