public class VanillaWireOutPublisher extends Object implements WireOutPublisher
| Constructor and Description |
|---|
VanillaWireOutPublisher(java.util.function.Function<net.openhft.chronicle.bytes.Bytes,net.openhft.chronicle.wire.Wire> wireType) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyAction(net.openhft.chronicle.wire.WireOut out,
Runnable read)
Apply waiting messages and return false if there was none.
|
boolean |
canTakeMoreData() |
void |
close() |
boolean |
isClosed() |
void |
put(Object key,
net.openhft.chronicle.wire.WriteMarshallable event) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnewThrottledWireOutPublisherpublic VanillaWireOutPublisher(@NotNull
java.util.function.Function<net.openhft.chronicle.bytes.Bytes,net.openhft.chronicle.wire.Wire> wireType)
public void applyAction(@NotNull
net.openhft.chronicle.wire.WireOut out,
@NotNull
Runnable read)
applyAction in interface WireOutPublisherout - buffer to write to.public void put(Object key, 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 AutoCloseablepublic boolean canTakeMoreData()
canTakeMoreData in interface WireOutPublisherCopyright © 2016. All rights reserved.