public class VanillaWireOutPublisher extends Object implements WireOutPublisher
Constructor and Description |
---|
VanillaWireOutPublisher(@NotNull net.openhft.chronicle.wire.WireType wireType) |
Modifier and Type | Method and Description |
---|---|
void |
addWireConsumer(WireOutConsumer wireOutConsumer) |
void |
applyAction(@NotNull net.openhft.chronicle.bytes.Bytes bytes)
Apply waiting messages and return false if there was none.
|
void |
applyAction(@NotNull net.openhft.chronicle.wire.WireOut outWire)
Apply waiting messages and return false if there was none.
|
boolean |
canTakeMoreData() |
void |
clear() |
void |
close() |
boolean |
isClosed() |
boolean |
isEmpty() |
void |
put(Object key,
@NotNull net.openhft.chronicle.wire.WriteMarshallable event) |
boolean |
removeBytesConsumer(WireOutConsumer wireOutConsumer) |
@NotNull String |
toString() |
void |
wireType(@NotNull net.openhft.chronicle.wire.WireType wireType) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
newThrottledWireOutPublisher, publish
public VanillaWireOutPublisher(@NotNull @NotNull net.openhft.chronicle.wire.WireType wireType)
public void applyAction(@NotNull @NotNull net.openhft.chronicle.bytes.Bytes bytes)
applyAction
in interface WireOutPublisher
bytes
- buffer to write to.public void applyAction(@NotNull @NotNull net.openhft.chronicle.wire.WireOut outWire)
applyAction
in interface WireOutPublisher
outWire
- buffer to write to.public void addWireConsumer(WireOutConsumer wireOutConsumer)
addWireConsumer
in interface WireOutPublisher
public boolean removeBytesConsumer(WireOutConsumer wireOutConsumer)
removeBytesConsumer
in interface WireOutPublisher
public void put(Object key, @NotNull @NotNull net.openhft.chronicle.wire.WriteMarshallable event)
put
in interface WireOutPublisher
key
- the key to the event, only used when throttling, otherwise NULL if the
throttling is not requiredevent
- the marshallable eventpublic boolean isClosed()
isClosed
in interface net.openhft.chronicle.core.io.QueryCloseable
isClosed
in interface WireOutPublisher
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in interface WireOutPublisher
public boolean canTakeMoreData()
canTakeMoreData
in interface WireOutPublisher
public void wireType(@NotNull @NotNull net.openhft.chronicle.wire.WireType wireType)
wireType
in interface WireOutPublisher
public void clear()
clear
in interface WireOutPublisher
public boolean isEmpty()
isEmpty
in interface WireOutPublisher
Copyright © 2020. All rights reserved.