Class GrpcConfig.BuilderBase.GrpcConfigImpl

java.lang.Object
io.helidon.webserver.grpc.GrpcConfig.BuilderBase.GrpcConfigImpl
All Implemented Interfaces:
Prototype.Api, NamedService, GrpcConfig, ProtocolConfig
Enclosing class:
GrpcConfig.BuilderBase<BUILDER extends GrpcConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends GrpcConfig>

protected static class GrpcConfig.BuilderBase.GrpcConfigImpl extends Object implements GrpcConfig
Generated implementation of the prototype, can be extended by descendant prototype implementations.
  • Constructor Details

    • GrpcConfigImpl

      protected GrpcConfigImpl(GrpcConfig.BuilderBase<?,?> builder)
      Create an instance providing a builder.
      Parameters:
      builder - extending builder base of this prototype
  • Method Details

    • name

      public String name()
      Description copied from interface: GrpcConfig
      Protocol configuration name.
      Specified by:
      name in interface GrpcConfig
      Specified by:
      name in interface NamedService
      Returns:
      name of this configuration
    • type

      public String type()
      Description copied from interface: GrpcConfig
      Protocol configuration type.
      Specified by:
      type in interface GrpcConfig
      Specified by:
      type in interface NamedService
      Returns:
      type of this configuration
    • enableMetrics

      public boolean enableMetrics()
      Description copied from interface: GrpcConfig
      Whether to collect metrics for gRPC server calls.
      Specified by:
      enableMetrics in interface GrpcConfig
      Returns:
      metrics flag
    • enableCompression

      public boolean enableCompression()
      Description copied from interface: GrpcConfig
      Whether to support compression if requested by a client. If explicitly disabled, no compression will be ever be used by the server even if a client-compatible compressor is found.
      Specified by:
      enableCompression in interface GrpcConfig
      Returns:
      true if compression is enabled
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object