public static final class ListenerOptions.Builder
extends java.lang.Object
ListenerOptions
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ListenerOptions |
build()
Builds the configured instance.
|
ListenerOptions.Builder |
clientAffinity(ClientAffinity clientAffinity)
Sets the value of
ListenerOptions.getClientAffinity() |
ListenerOptions.Builder |
listenerName(java.lang.String listenerName)
Sets the value of
ListenerOptions.getListenerName() |
ListenerOptions.Builder |
portRanges(java.util.List<? extends PortRange> portRanges)
Sets the value of
ListenerOptions.getPortRanges() |
ListenerOptions.Builder |
protocol(ConnectionProtocol protocol)
Sets the value of
ListenerOptions.getProtocol() |
public ListenerOptions.Builder portRanges(java.util.List<? extends PortRange> portRanges)
ListenerOptions.getPortRanges()
portRanges
- The list of port ranges for the connections from clients to the accelerator. This parameter is required.this
public ListenerOptions.Builder clientAffinity(ClientAffinity clientAffinity)
ListenerOptions.getClientAffinity()
clientAffinity
- Client affinity to direct all requests from a user to the same endpoint.
If you have stateful applications, client affinity lets you direct all
requests from a user to the same endpoint.
By default, each connection from each client is routed to seperate endpoints. Set client affinity to SOURCE_IP to route all connections from a single client to the same endpoint.
this
public ListenerOptions.Builder listenerName(java.lang.String listenerName)
ListenerOptions.getListenerName()
listenerName
- Name of the listener.this
public ListenerOptions.Builder protocol(ConnectionProtocol protocol)
ListenerOptions.getProtocol()
protocol
- The protocol for the connections from clients to the accelerator.this
public ListenerOptions build()
ListenerOptions
java.lang.NullPointerException
- if any required attribute was not provided