public interface WireCommon
| Modifier and Type | Method and Description |
|---|---|
@NotNull net.openhft.chronicle.bytes.Bytes<?> |
bytes()
Returns the underlying
Bytes stored by the wire. |
net.openhft.chronicle.bytes.HexDumpBytesDescription<?> |
bytesComment()
Returns the bytes() but only for comment.
|
net.openhft.chronicle.core.pool.ClassLookup |
classLookup()
Returns the current
ClassLookup implementation being used for class lookup. |
void |
classLookup(net.openhft.chronicle.core.pool.ClassLookup classLookup)
Sets the
ClassLookup implementation to be used for class lookup. |
void |
clear()
Resets the state of the underlying
Bytes stored by the wire. |
long |
headerNumber() |
@NotNull WireOut |
headerNumber(long headerNumber) |
boolean |
isBinary()
Determine whether direct access to the underlying byte() makes sense or should it be treated as text
|
@NotNull net.openhft.chronicle.core.values.BooleanValue |
newBooleanReference()
Creates and returns a new
BooleanValue. |
@NotNull net.openhft.chronicle.core.values.IntArrayValues |
newIntArrayReference()
Creates and returns a new
IntArrayValues. |
@NotNull net.openhft.chronicle.core.values.IntValue |
newIntReference()
Creates and returns a new
IntValue. |
@NotNull net.openhft.chronicle.core.values.LongArrayValues |
newLongArrayReference()
Creates and returns a new
LongArrayValues. |
@NotNull net.openhft.chronicle.core.values.LongValue |
newLongReference()
Creates and returns a new
LongValue. |
default @NotNull net.openhft.chronicle.core.values.TwoLongValue |
newTwoLongReference()
Creates and returns a new
TwoLongValue. |
default boolean |
notCompleteIsNotPresent()
If a message is marked as NOT_COMPLETE is it still present.
|
default void |
notCompleteIsNotPresent(boolean notCompleteArePresent) |
@Nullable Object |
parent()
Returns the wire parent object.
|
void |
parent(Object parent)
Assigns the wire parent object for later retrieval.
|
net.openhft.chronicle.threads.Pauser |
pauser()
Returns the current
Pauser implementation being used for blocking operations. |
void |
pauser(net.openhft.chronicle.threads.Pauser pauser)
Sets the
Pauser implementation to be used for blocking operations. |
void |
reset()
Reset the state of the wire
|
boolean |
usePadding() |
void |
usePadding(boolean usePadding) |
boolean |
useSelfDescribingMessage(@NotNull net.openhft.chronicle.bytes.CommonMarshallable object)
Should this wire write the object as a Marshallable or BytesMarshallable
|
void classLookup(net.openhft.chronicle.core.pool.ClassLookup classLookup)
ClassLookup implementation to be used for class lookup.classLookup - implementation to be used for class lookup.net.openhft.chronicle.core.pool.ClassLookup classLookup()
ClassLookup implementation being used for class lookup.ClassLookup implementation being used for class lookupvoid pauser(net.openhft.chronicle.threads.Pauser pauser)
Pauser implementation to be used for blocking operations.pauser - implementation to be used for blocking operations.net.openhft.chronicle.threads.Pauser pauser()
Pauser implementation being used for blocking operations.Pauser implementation being used for blocking operations@NotNull @NotNull net.openhft.chronicle.bytes.Bytes<?> bytes()
Bytes stored by the wire.Bytes stored by the wirenet.openhft.chronicle.bytes.HexDumpBytesDescription<?> bytesComment()
@NotNull @NotNull net.openhft.chronicle.core.values.IntValue newIntReference()
IntValue. The IntValue implementation that is
returned depends on the wire implementation.IntValue.@NotNull @NotNull net.openhft.chronicle.core.values.LongValue newLongReference()
LongValue. The LongValue implementation that is
returned depends on the wire implementation.LongValue@NotNull default @NotNull net.openhft.chronicle.core.values.TwoLongValue newTwoLongReference()
TwoLongValue. The TwoLongValue implementation that
is returned depends on the wire implementation.TwoLongValue@NotNull @NotNull net.openhft.chronicle.core.values.LongArrayValues newLongArrayReference()
LongArrayValues. The LongArrayValues implementation that
is returned depends on the wire implementation.LongArrayValues@NotNull @NotNull net.openhft.chronicle.core.values.IntArrayValues newIntArrayReference()
IntArrayValues. The IntArrayValues implementation that
is returned depends on the wire implementation.IntArrayValuesvoid clear()
Bytes stored by the wire.@Nullable @Nullable Object parent()
null is
returned instead.null if none was assigned.void parent(Object parent)
parent - to set, or null if there isn't one.default boolean notCompleteIsNotPresent()
default void notCompleteIsNotPresent(boolean notCompleteArePresent)
@NotNull @NotNull WireOut headerNumber(long headerNumber)
long headerNumber()
void usePadding(boolean usePadding)
boolean usePadding()
@NotNull @NotNull net.openhft.chronicle.core.values.BooleanValue newBooleanReference()
BooleanValue. The BooleanValue implementation that is
returned depends on the wire implementation.BooleanValue.boolean useSelfDescribingMessage(@NotNull
@NotNull net.openhft.chronicle.bytes.CommonMarshallable object)
boolean isBinary()
void reset()
Copyright © 2023. All rights reserved.