java.lang.Object
google.registry.monitoring.blackbox.connection.Protocol

public abstract class Protocol extends Object
AutoValue class that stores all unchanged variables necessary for type of connection.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Default AutoValue.Builder for Protocol.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final io.netty.util.AttributeKey<Protocol>
    AttributeKey that lets channel reference Protocol that created it.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    abstract com.google.common.collect.ImmutableList<javax.inject.Provider<? extends io.netty.channel.ChannelHandler>>
    The ChannelHandler providers to use for the protocol, in order.
    abstract String
     
    abstract boolean
    Boolean that notes if connection associated with Protocol is persistent.
    abstract int
     
    final String
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • PROTOCOL_KEY

      public static final io.netty.util.AttributeKey<Protocol> PROTOCOL_KEY
      AttributeKey that lets channel reference Protocol that created it.
  • Constructor Details

    • Protocol

      public Protocol()
  • Method Details

    • builder

      public static Protocol.Builder builder()
    • name

      public abstract String name()
    • port

      public abstract int port()
    • handlerProviders

      public abstract com.google.common.collect.ImmutableList<javax.inject.Provider<? extends io.netty.channel.ChannelHandler>> handlerProviders()
      The ChannelHandler providers to use for the protocol, in order.
    • persistentConnection

      public abstract boolean persistentConnection()
      Boolean that notes if connection associated with Protocol is persistent.
    • toString

      public final String toString()
      Overrides:
      toString in class Object