Package com.wavefront.agent.histogram
Class Utils.HistogramKeyMarshaller
- java.lang.Object
-
- com.wavefront.agent.histogram.Utils.HistogramKeyMarshaller
-
- All Implemented Interfaces:
net.openhft.chronicle.core.io.Resettable
,net.openhft.chronicle.core.util.ReadResolvable<Utils.HistogramKeyMarshaller>
,net.openhft.chronicle.hash.serialization.BytesReader<Utils.HistogramKey>
,net.openhft.chronicle.hash.serialization.BytesWriter<Utils.HistogramKey>
,net.openhft.chronicle.wire.Marshallable
,net.openhft.chronicle.wire.ReadMarshallable
,net.openhft.chronicle.wire.WriteMarshallable
,net.openhft.chronicle.wire.WriteValue
- Enclosing class:
- Utils
public static class Utils.HistogramKeyMarshaller extends Object implements net.openhft.chronicle.hash.serialization.BytesReader<Utils.HistogramKey>, net.openhft.chronicle.hash.serialization.BytesWriter<Utils.HistogramKey>, net.openhft.chronicle.core.util.ReadResolvable<Utils.HistogramKeyMarshaller>
(For now, a rather trivial) encoding ofUtils.HistogramKey
the form short length and bytes Consider using chronicle-values or making this stateful with a local byte[] / Stringbuffers to be a little more efficient about encodings.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Utils.HistogramKeyMarshaller
get()
Utils.HistogramKey
read(net.openhft.chronicle.bytes.Bytes in, Utils.HistogramKey using)
void
readMarshallable(net.openhft.chronicle.wire.WireIn wire)
Utils.HistogramKeyMarshaller
readResolve()
void
write(net.openhft.chronicle.bytes.Bytes out, Utils.HistogramKey toWrite)
void
writeMarshallable(net.openhft.chronicle.wire.WireOut wire)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Method Detail
-
get
public static Utils.HistogramKeyMarshaller get()
-
readResolve
public Utils.HistogramKeyMarshaller readResolve()
- Specified by:
readResolve
in interfacenet.openhft.chronicle.core.util.ReadResolvable<Utils.HistogramKeyMarshaller>
-
readMarshallable
public void readMarshallable(@NotNull net.openhft.chronicle.wire.WireIn wire) throws net.openhft.chronicle.core.io.IORuntimeException
- Specified by:
readMarshallable
in interfacenet.openhft.chronicle.wire.Marshallable
- Specified by:
readMarshallable
in interfacenet.openhft.chronicle.wire.ReadMarshallable
- Throws:
net.openhft.chronicle.core.io.IORuntimeException
-
writeMarshallable
public void writeMarshallable(@NotNull net.openhft.chronicle.wire.WireOut wire)
- Specified by:
writeMarshallable
in interfacenet.openhft.chronicle.wire.Marshallable
- Specified by:
writeMarshallable
in interfacenet.openhft.chronicle.wire.WriteMarshallable
-
read
@NotNull public Utils.HistogramKey read(net.openhft.chronicle.bytes.Bytes in, @Nullable Utils.HistogramKey using)
- Specified by:
read
in interfacenet.openhft.chronicle.hash.serialization.BytesReader<Utils.HistogramKey>
-
write
public void write(net.openhft.chronicle.bytes.Bytes out, @NotNull Utils.HistogramKey toWrite)
- Specified by:
write
in interfacenet.openhft.chronicle.hash.serialization.BytesWriter<Utils.HistogramKey>
-
-