@FunctionalInterface public interface WireOutPublisher extends net.openhft.chronicle.core.io.Closeable
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOG |
| Modifier and Type | Method and Description |
|---|---|
default void |
addWireConsumer(WireOutConsumer wireOutConsumer) |
default void |
applyAction(net.openhft.chronicle.bytes.Bytes out) |
default void |
applyAction(net.openhft.chronicle.wire.WireOut out) |
default boolean |
canTakeMoreData() |
default void |
clear() |
default void |
close() |
default boolean |
isClosed() |
default boolean |
isEmpty() |
static WireOutPublisher |
newThrottledWireOutPublisher(int periodMs,
WireOutPublisher delegate)
a static factory that creates and instance in chronicle enterprise
|
default void |
publish(net.openhft.chronicle.wire.WriteMarshallable event)
publishes an event without a throttle key
|
void |
put(Object key,
net.openhft.chronicle.wire.WriteMarshallable event) |
default boolean |
removeBytesConsumer(WireOutConsumer wireOutConsumer) |
default void |
wireType(net.openhft.chronicle.wire.WireType wireType) |
static WireOutPublisher newThrottledWireOutPublisher(int periodMs, @NotNull WireOutPublisher delegate)
periodMs - the period between updates of the same keydelegate - the WireOutPublisher the events will get delegated todefault void applyAction(@NotNull
net.openhft.chronicle.bytes.Bytes out)
default void applyAction(@NotNull
net.openhft.chronicle.wire.WireOut out)
default void addWireConsumer(WireOutConsumer wireOutConsumer)
default boolean removeBytesConsumer(WireOutConsumer wireOutConsumer)
void put(@Nullable
Object key,
net.openhft.chronicle.wire.WriteMarshallable event)
key - the key to the event, only used when throttling, otherwise NULL if the
throttling is not requiredevent - the marshallable eventdefault boolean isClosed()
default boolean canTakeMoreData()
default boolean isEmpty()
default void close()
close in interface AutoCloseableclose in interface Closeabledefault void wireType(net.openhft.chronicle.wire.WireType wireType)
default void clear()
default void publish(net.openhft.chronicle.wire.WriteMarshallable event)
event - the event to publishCopyright © 2017. All rights reserved.