public class ChronicleChannelSupplier extends ChronicleChannelCfg<ChronicleChannelSupplier> implements Supplier<ChronicleChannel>
SupplierEMPTYDISCARD| Constructor and Description |
|---|
ChronicleChannelSupplier(ChronicleContext context,
ChannelHandler handler)
Constructs a new ChronicleChannelSupplier with the provided context and handler.
|
| Modifier and Type | Method and Description |
|---|---|
String |
connectionId()
Retrieves the connection ID associated with this supplier.
|
ChronicleChannelSupplier |
connectionId(String connectionId)
Sets the connection ID associated with this supplier.
|
ChronicleChannel |
get()
Depending on the specified protocol, it instantiates a new ChronicleChannel,
registers it with the context, and returns the newly created ChronicleChannel instance.
|
String |
protocol()
Retrieves the protocol used by this supplier for creating ChronicleChannel instances.
|
ChronicleChannelSupplier |
protocol(String protocol)
Sets the protocol used by this supplier for creating ChronicleChannel instances.
|
addHostnamePort, buffered, buffered, clearHostnamePort, connectionTimeoutSecs, connectionTimeoutSecs, hostname, hostname, hostPorts, initiator, initiator, pauserMode, pauserMode, port, port, removeHostnamePortusesSelfDescribingMessageequals, 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 ChronicleChannelSupplier(ChronicleContext context, ChannelHandler handler)
context - the ChronicleContext that serves as the system context for this supplierhandler - the ChannelHandler responsible for handling events on the channelpublic ChronicleChannel get()
get in interface Supplier<ChronicleChannel>IllegalArgumentException - if the protocol is unsupportedpublic String protocol()
public ChronicleChannelSupplier protocol(String protocol)
protocol - the protocol as a stringpublic String connectionId()
public ChronicleChannelSupplier connectionId(String connectionId)
connectionId - the connection ID as a stringCopyright © 2023. All rights reserved.