Class ManagedChannelServiceConfig.MethodInfo

  • Enclosing class:
    ManagedChannelServiceConfig

    static final class ManagedChannelServiceConfig.MethodInfo
    extends java.lang.Object
    Equivalent of MethodConfig from a ServiceConfig with restrictions from Channel setting.
    • Constructor Detail

      • MethodInfo

        MethodInfo​(java.util.Map<java.lang.String,​?> methodConfig,
                   boolean retryEnabled,
                   int maxRetryAttemptsLimit,
                   int maxHedgedAttemptsLimit)
        Constructor.
        Parameters:
        retryEnabled - when false, the argument maxRetryAttemptsLimit will have no effect.
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • retryPolicy

        private static RetryPolicy retryPolicy​(java.util.Map<java.lang.String,​?> retryPolicy,
                                               int maxAttemptsLimit)
      • hedgingPolicy

        private static HedgingPolicy hedgingPolicy​(java.util.Map<java.lang.String,​?> hedgingPolicy,
                                                   int maxAttemptsLimit)