public abstract class AbstractConnectionStrategy extends net.openhft.chronicle.wire.AbstractMarshallableCfg implements ConnectionStrategy
| Modifier and Type | Field and Description |
|---|---|
protected ClientConnectionMonitor |
clientConnectionMonitor |
protected String |
localBindingNetworkInterface |
protected ProtocolFamily |
localBindingProtocolFamily |
protected String |
localSocketBindingHost |
protected int |
localSocketBindingPort |
protected int |
tcpBufferSize |
| Constructor and Description |
|---|
AbstractConnectionStrategy() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected long |
defaultMaxPauseSec() |
protected long |
defaultMinPauseSec() |
boolean |
isClosed() |
void |
localBindingNetworkInterface(String localBindingNetworkInterface)
Sets network interface name whose first matching address will be used for local connection sockets binding.
|
void |
localBindingProtocolFamily(ProtocolFamily localBindingProtocolFamily)
Sets protocol family to choose address from in case binding address or network interface correspond to more than
one address.
|
@Nullable InetSocketAddress |
localSocketBinding()
Get the local socket to bind the connection to
|
void |
localSocketBindingHost(String localSocketBindingHost)
Sets address for local connection sockets binding.
|
void |
localSocketBindingPort(int localSocketBindingPort) |
AbstractConnectionStrategy |
open() |
readMarshallable, unexpectedField, writeMarshallableusesSelfDescribingMessageequals, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitclientConnectionMonitor, connect, maxPauseSec, minPauseSec, openSocketChannel, openSocketChannel, pauseBeforeReconnect, pauseMillisBeforeReconnect, socketChannel, throwExceptionIfClosed$equals, $fieldInfoMap, $fieldInfos, $hashCode, $toString, className, copyTo, deepCopy, fromFile, fromFile, fromString, fromString, fromString, getField, getLongField, mergeToMap, readMarshallable, reset, setField, setLongField, streamFromFile, streamFromFile, writeMarshallablebinaryLengthLength, writeValueprotected int tcpBufferSize
protected ClientConnectionMonitor clientConnectionMonitor
protected String localSocketBindingHost
protected int localSocketBindingPort
protected String localBindingNetworkInterface
protected ProtocolFamily localBindingProtocolFamily
@Nullable public @Nullable InetSocketAddress localSocketBinding() throws SocketException, UnknownHostException, IllegalStateException
ConnectionStrategylocalSocketBinding in interface ConnectionStrategySocketException - If an I/O error occursUnknownHostException - If an adddress cannot be resolvedIllegalStateException - If a hostname or interface has no matching addressespublic void localSocketBindingHost(String localSocketBindingHost)
localBindingNetworkInterface(String)public void localSocketBindingPort(int localSocketBindingPort)
public void localBindingNetworkInterface(String localBindingNetworkInterface)
localBindingNetworkInterface - Network interface to uselocalBindingProtocolFamily(ProtocolFamily)public void localBindingProtocolFamily(ProtocolFamily localBindingProtocolFamily)
localBindingProtocolFamily - Protocol family to usepublic AbstractConnectionStrategy open()
open in interface ConnectionStrategypublic void close()
close in interface Closeableclose in interface AutoCloseableclose in interface ConnectionStrategypublic boolean isClosed()
isClosed in interface ConnectionStrategyprotected long defaultMinPauseSec()
protected long defaultMaxPauseSec()
Copyright © 2023. All rights reserved.