Package com.wavefront.agent.histogram
Class HistogramUtils.HistogramKeyMarshaller
- java.lang.Object
-
- com.wavefront.agent.histogram.HistogramUtils.HistogramKeyMarshaller
-
- All Implemented Interfaces:
net.openhft.chronicle.core.io.Resettable
,net.openhft.chronicle.core.util.ReadResolvable<HistogramUtils.HistogramKeyMarshaller>
,net.openhft.chronicle.hash.serialization.BytesReader<HistogramKey>
,net.openhft.chronicle.hash.serialization.BytesWriter<HistogramKey>
,net.openhft.chronicle.wire.Marshallable
,net.openhft.chronicle.wire.ReadMarshallable
,net.openhft.chronicle.wire.WriteMarshallable
,net.openhft.chronicle.wire.WriteValue
- Enclosing class:
- HistogramUtils
public static class HistogramUtils.HistogramKeyMarshaller extends Object implements net.openhft.chronicle.hash.serialization.BytesReader<HistogramKey>, net.openhft.chronicle.hash.serialization.BytesWriter<HistogramKey>, net.openhft.chronicle.core.util.ReadResolvable<HistogramUtils.HistogramKeyMarshaller>
(For now, a rather trivial) encoding ofHistogramKey
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 HistogramUtils.HistogramKeyMarshaller
get()
HistogramKey
read(net.openhft.chronicle.bytes.Bytes in, HistogramKey using)
void
readMarshallable(net.openhft.chronicle.wire.WireIn wire)
HistogramUtils.HistogramKeyMarshaller
readResolve()
void
write(net.openhft.chronicle.bytes.Bytes out, 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 HistogramUtils.HistogramKeyMarshaller get()
-
readResolve
@Nonnull public HistogramUtils.HistogramKeyMarshaller readResolve()
- Specified by:
readResolve
in interfacenet.openhft.chronicle.core.util.ReadResolvable<HistogramUtils.HistogramKeyMarshaller>
-
readMarshallable
public void readMarshallable(@Nonnull 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(@Nonnull 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
@Nonnull public HistogramKey read(net.openhft.chronicle.bytes.Bytes in, @Nullable HistogramKey using)
- Specified by:
read
in interfacenet.openhft.chronicle.hash.serialization.BytesReader<HistogramKey>
-
write
public void write(net.openhft.chronicle.bytes.Bytes out, @Nonnull HistogramKey toWrite)
- Specified by:
write
in interfacenet.openhft.chronicle.hash.serialization.BytesWriter<HistogramKey>
-
-