public interface GatewayReceiverFactory
Modifier and Type | Field and Description |
---|---|
static String |
A_GATEWAY_RECEIVER_ALREADY_EXISTS_ON_THIS_MEMBER |
Modifier and Type | Method and Description |
---|---|
GatewayReceiverFactory |
addGatewayTransportFilter(GatewayTransportFilter filter)
Adds a
GatewayTransportFilter |
GatewayReceiver |
create()
Creates and returns an instance of
GatewayReceiver |
GatewayReceiverFactory |
removeGatewayTransportFilter(GatewayTransportFilter filter)
Removes a
GatewayTransportFilter |
GatewayReceiverFactory |
setBindAddress(String address)
Sets the ip address or host name that this
GatewayReceiver is to listen on for
GatewaySender Connection |
GatewayReceiverFactory |
setEndPort(int endPort)
Sets the end port for the GatewayReceiver.
|
GatewayReceiverFactory |
setHostnameForSenders(String address)
Sets the ip address or host name that server locators will tell GatewaySenders that this
GatewayReceiver is listening on.
|
GatewayReceiverFactory |
setManualStart(boolean start)
Sets the manual start boolean property for this
GatewayReceiver . |
GatewayReceiverFactory |
setMaximumTimeBetweenPings(int time)
Sets the maximum amount of time between client pings.The default is 60000 ms.
|
GatewayReceiverFactory |
setSocketBufferSize(int socketBufferSize)
Sets the buffer size in bytes of the socket connection for this
GatewayReceiver . |
GatewayReceiverFactory |
setStartPort(int startPort)
Sets the start port for the
GatewayReceiver . |
static final String A_GATEWAY_RECEIVER_ALREADY_EXISTS_ON_THIS_MEMBER
GatewayReceiverFactory setStartPort(int startPort)
GatewayReceiver
. If set the GatewayReceiver will start
at one of the port between startPort and endPort. The default startPort 50505.startPort
- the start port for the GatewayReceiverGatewayReceiverFactory setEndPort(int endPort)
endPort
- the end port for the GatewayReceiverGatewayReceiverFactory setSocketBufferSize(int socketBufferSize)
GatewayReceiver
.
The default is 32768 bytes.socketBufferSize
- The size in bytes of the socket bufferGatewayReceiverFactory setBindAddress(String address)
GatewayReceiver
is to listen on for
GatewaySender Connectionaddress
- String representing ip address or host nameGatewayReceiverFactory addGatewayTransportFilter(GatewayTransportFilter filter)
GatewayTransportFilter
filter
- GatewayTransportFilterGatewayReceiverFactory removeGatewayTransportFilter(GatewayTransportFilter filter)
GatewayTransportFilter
filter
- GatewayTransportFilterGatewayReceiverFactory setMaximumTimeBetweenPings(int time)
time
- The maximum amount of time between client pingsGatewayReceiverFactory setHostnameForSenders(String address)
address
- String representing ip address or host nameGatewayReceiverFactory setManualStart(boolean start)
GatewayReceiver
.start
- the manual start boolean property for this GatewayReceiver
GatewayReceiver
will not start
automatically once created. Ideal default value should be false to match with
GatewaySender counterpart. But to not to break the existing functionality default value
is set to true. For next major releases, default value will be changed to false.GatewayReceiver create()
GatewayReceiver