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 |
|---|---|
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()
Fetches the connection timeout duration, measured in seconds.
|
C |
connectionTimeoutSecs(double connectionTimeoutSecs)
Sets the connection timeout in seconds.
|
boolean |
equals(Object o) |
int |
hashCode() |
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()
Provides the current status of the initiator flag.
|
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.
|
String |
toString() |
usesSelfDescribingMessageclone, 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 C addHostnamePort(String hostname, int port)
hostname - the target hostnameport - the designated port numberpublic void removeHostnamePort(String hostname, int port)
hostname - the target hostnameport - the designated port numberpublic C initiator(boolean initiator)
initiator - the desired state for 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 - a flag indicating whether buffering should be enabledpublic net.openhft.chronicle.threads.PauserMode pauserMode()
public C pauserMode(net.openhft.chronicle.threads.PauserMode pauser)
pauser - the desired PauserModepublic double connectionTimeoutSecs()
public C connectionTimeoutSecs(double connectionTimeoutSecs)
connectionTimeoutSecs - the desired timeout duration in secondspublic void clearHostnamePort()
Copyright © 2024. All rights reserved.