public class SubscribeHandler extends net.openhft.chronicle.wire.channel.AbstractHandler<SubscribeHandler>
| Constructor and Description |
|---|
SubscribeHandler() |
| Modifier and Type | Method and Description |
|---|---|
net.openhft.chronicle.wire.channel.ChronicleChannel |
asInternalChannel(net.openhft.chronicle.wire.channel.ChronicleContext context,
net.openhft.chronicle.wire.channel.ChronicleChannelCfg channelCfg) |
boolean |
closeWhenRunEnds() |
Predicate<net.openhft.chronicle.wire.Wire> |
filter() |
SubscribeHandler |
filter(Predicate<net.openhft.chronicle.wire.Wire> filter) |
void |
run(net.openhft.chronicle.wire.channel.ChronicleContext context,
net.openhft.chronicle.wire.channel.ChronicleChannel channel) |
String |
subscribe() |
SubscribeHandler |
subscribe(String subscribe) |
SubscribeHandler |
subscribeSourceId(int sourceId) |
SubscribeHandler |
subscriptionIndexController(Consumer<ExcerptTailer> subscriptionIndexController) |
net.openhft.chronicle.bytes.SyncMode |
syncMode() |
SubscribeHandler |
syncMode(net.openhft.chronicle.bytes.SyncMode syncMode) |
sessionName, sessionName, systemContext, systemContextusesSelfDescribingMessageclone, finalize, getClass, notify, notifyAll, wait, wait, waitrecordHistory, responseHeadersessionName, sessionName, systemContext, systemContext$equals, $fieldInfoMap, $fieldInfos, $hashCode, $toString, className, copyTo, deepCopy, fromFile, fromFile, fromString, fromString, fromString, getField, getLongField, mergeToMap, readMarshallable, reset, setField, setLongField, streamFromFile, streamFromFile, writeMarshallablebinaryLengthLength, writeValuepublic static final Consumer NO_OP
public String subscribe()
public SubscribeHandler subscribe(String subscribe)
public net.openhft.chronicle.bytes.SyncMode syncMode()
public SubscribeHandler syncMode(net.openhft.chronicle.bytes.SyncMode syncMode)
public Predicate<net.openhft.chronicle.wire.Wire> filter()
public SubscribeHandler filter(Predicate<net.openhft.chronicle.wire.Wire> filter)
public void run(net.openhft.chronicle.wire.channel.ChronicleContext context,
net.openhft.chronicle.wire.channel.ChronicleChannel channel)
public boolean closeWhenRunEnds()
public net.openhft.chronicle.wire.channel.ChronicleChannel asInternalChannel(net.openhft.chronicle.wire.channel.ChronicleContext context,
net.openhft.chronicle.wire.channel.ChronicleChannelCfg channelCfg)
public SubscribeHandler subscribeSourceId(int sourceId)
sourceId - the sourceId of the subscribe queuepublic SubscribeHandler subscriptionIndexController(Consumer<ExcerptTailer> subscriptionIndexController)
subscriptionIndexController - controls where the subscriptions will start to read from, by allowing the caller to
ExcerptTailer.moveToIndex(long) to control the first read locationCopyright © 2024. All rights reserved.