public static final class ListenerProps.Builder
extends java.lang.Object
ListenerProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ListenerProps.Builder |
accelerator(IAccelerator accelerator)
Sets the value of
ListenerProps.getAccelerator() |
ListenerProps |
build()
Builds the configured instance.
|
ListenerProps.Builder |
clientAffinity(ClientAffinity clientAffinity)
Sets the value of
ListenerOptions.getClientAffinity() |
ListenerProps.Builder |
listenerName(java.lang.String listenerName)
Sets the value of
ListenerOptions.getListenerName() |
ListenerProps.Builder |
portRanges(java.util.List<? extends PortRange> portRanges)
Sets the value of
ListenerOptions.getPortRanges() |
ListenerProps.Builder |
protocol(ConnectionProtocol protocol)
Sets the value of
ListenerOptions.getProtocol() |
public ListenerProps.Builder accelerator(IAccelerator accelerator)
ListenerProps.getAccelerator()
accelerator
- The accelerator for this listener. This parameter is required.this
public ListenerProps.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 ListenerProps.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 ListenerProps.Builder listenerName(java.lang.String listenerName)
ListenerOptions.getListenerName()
listenerName
- Name of the listener.this
public ListenerProps.Builder protocol(ConnectionProtocol protocol)
ListenerOptions.getProtocol()
protocol
- The protocol for the connections from clients to the accelerator.this
public ListenerProps build()
ListenerProps
java.lang.NullPointerException
- if any required attribute was not provided