C - the type of the implementing class that is derived from ChronicleChannelCfgpublic class ChronicleChannelCfg<C extends ChronicleChannelCfg<C>> extends SelfDescribingMarshallable
EMPTYDISCARD| Constructor and Description |
|---|
ChronicleChannelCfg() |
| Modifier and Type | Method and Description |
|---|---|
ChronicleChannelCfg<C> |
addHostnamePort(String hostname,
int port)
Adds a hostname and port to the set of host ports.
|
boolean |
buffered()
Returns the buffered flag.
|
C |
buffered(boolean buffered)
Sets the buffering mode for the connection.
|
void |
clearHostnamePort()
Clears all the host ports you have set up.
|
double |
connectionTimeoutSecs()
Returns the connection timeout in seconds.
|
C |
connectionTimeoutSecs(double connectionTimeoutSecs)
Sets the connection timeout in seconds.
|
String |
hostname()
Deprecated.
use
hostPorts() |
C |
hostname(String hostname)
Deprecated.
|
Set<HostPortCfg> |
hostPorts()
Returns the set of host ports configured for the ChronicleChannel.
|
boolean |
initiator()
Returns the initiator flag.
|
ChronicleChannelCfg<C> |
initiator(boolean initiator)
Sets the initiator flag.
|
net.openhft.chronicle.threads.PauserMode |
pauserMode()
Returns the PauserMode.
|
C |
pauserMode(net.openhft.chronicle.threads.PauserMode pauser)
Sets the PauserMode to be used by the connection.
|
int |
port()
Deprecated.
use
hostPorts() |
C |
port(int port)
Deprecated.
|
void |
removeHostnamePort(String hostname,
int port)
Removes a hostname and port from the set of host ports.
|
usesSelfDescribingMessageequals, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, wait$equals, $fieldInfoMap, $fieldInfos, $hashCode, $toString, className, copyTo, deepCopy, fromFile, fromFile, fromString, fromString, fromString, getField, getLongField, mergeToMap, readMarshallable, reset, setField, setLongField, streamFromFile, streamFromFile, writeMarshallablebinaryLengthLength, writeValueunexpectedFieldpublic Set<HostPortCfg> hostPorts()
public ChronicleChannelCfg<C> addHostnamePort(String hostname, int port)
hostname - the hostnameport - the port numberpublic void removeHostnamePort(String hostname, int port)
hostname - the hostnameport - the port numberpublic ChronicleChannelCfg<C> initiator(boolean initiator)
initiator - the initiator flagpublic boolean initiator()
@Deprecated public String hostname()
hostPorts()@Deprecated public C hostname(String hostname)
addHostnamePort(String, int)hostname - the hostname@Deprecated public int port()
hostPorts()@Deprecated public C port(int port)
addHostnamePort(String, int)port - the port numberpublic boolean buffered()
public C buffered(boolean buffered)
buffered - if true, enables bufferingpublic net.openhft.chronicle.threads.PauserMode pauserMode()
public C pauserMode(net.openhft.chronicle.threads.PauserMode pauser)
pauser - the PauserModepublic double connectionTimeoutSecs()
public C connectionTimeoutSecs(double connectionTimeoutSecs)
connectionTimeoutSecs - the connection timeout in secondspublic void clearHostnamePort()
Copyright © 2023. All rights reserved.