Package google.registry.proxy
Interface Protocol
- All Known Implementing Classes:
Protocol.BackendProtocol
,Protocol.FrontendProtocol
public interface Protocol
Value class that encapsulates parameters of a specific connection.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
Connection parameters for a connection from the proxy to the GAE app.static class
Protocol.Builder<B extends Protocol.Builder<B,
P>, P extends Protocol> Generic builder enabling chaining for concrete implementations.static class
Connection parameters for a connection from the client to the proxy. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionA builder forProtocol.FrontendProtocol
, by default it connects to a remote host.A builder forProtocol.FrontendProtocol
, by default there is a backend associated with it.com.google.common.collect.ImmutableList
<javax.inject.Provider<? extends io.netty.channel.ChannelHandler>> TheChannelHandler
providers to use for the protocol, in order.name()
Protocol name.int
port()
Port to bind to (forProtocol.FrontendProtocol
) or to connect to (forProtocol.BackendProtocol
).
-
Field Details
-
PROTOCOL_KEY
-
-
Method Details
-
name
String name()Protocol name. -
port
int port()Port to bind to (forProtocol.FrontendProtocol
) or to connect to (forProtocol.BackendProtocol
). -
handlerProviders
com.google.common.collect.ImmutableList<javax.inject.Provider<? extends io.netty.channel.ChannelHandler>> handlerProviders()TheChannelHandler
providers to use for the protocol, in order. -
frontendBuilder
A builder forProtocol.FrontendProtocol
, by default there is a backend associated with it. -
backendBuilder
A builder forProtocol.FrontendProtocol
, by default it connects to a remote host.
-