public class VanillaWireOutPublisher extends Object implements WireOutPublisher
| Constructor and Description |
|---|
VanillaWireOutPublisher(net.openhft.chronicle.wire.WireType wireType) |
| Modifier and Type | Method and Description |
|---|---|
void |
addWireConsumer(WireOutConsumer wireOutConsumer) |
void |
applyAction(net.openhft.chronicle.bytes.Bytes bytes)
Apply waiting messages and return false if there was none.
|
void |
applyAction(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,
net.openhft.chronicle.wire.WriteMarshallable event) |
boolean |
removeBytesConsumer(WireOutConsumer wireOutConsumer) |
String |
toString() |
void |
wireType(net.openhft.chronicle.wire.WireType wireType) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitnewThrottledWireOutPublisher, publishpublic VanillaWireOutPublisher(@NotNull
net.openhft.chronicle.wire.WireType wireType)
public void applyAction(@NotNull
net.openhft.chronicle.bytes.Bytes bytes)
applyAction in interface WireOutPublisherbytes - buffer to write to.public void applyAction(@NotNull
net.openhft.chronicle.wire.WireOut outWire)
applyAction in interface WireOutPublisheroutWire - buffer to write to.public void addWireConsumer(WireOutConsumer wireOutConsumer)
addWireConsumer in interface WireOutPublisherpublic boolean removeBytesConsumer(WireOutConsumer wireOutConsumer)
removeBytesConsumer in interface WireOutPublisherpublic void put(Object key, @NotNull net.openhft.chronicle.wire.WriteMarshallable event)
put in interface WireOutPublisherkey - 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 WireOutPublisherpublic void close()
close in interface Closeableclose in interface AutoCloseableclose in interface WireOutPublisherpublic boolean canTakeMoreData()
canTakeMoreData in interface WireOutPublisherpublic void wireType(@NotNull
net.openhft.chronicle.wire.WireType wireType)
wireType in interface WireOutPublisherpublic void clear()
clear in interface WireOutPublisherpublic boolean isEmpty()
isEmpty in interface WireOutPublisherCopyright © 2018. All rights reserved.