public class FlyweightMetricsLogEntry extends Object implements MetricsLogEntry, Flyweight<FlyweightMetricsLogEntry>
MetricsLogEntry.Type| Constructor and Description |
|---|
FlyweightMetricsLogEntry() |
| Modifier and Type | Method and Description |
|---|---|
short |
choice() |
int |
count() |
long |
counter(int index) |
byte |
flags() |
short |
index() |
FlyweightMetricsLogEntry |
init(DirectBuffer src,
int srcOffset) |
long |
interval() |
int |
repetition() |
FlyweightMetricsLogEntry |
reset() |
long |
sequence() |
int |
source() |
TimeMetric.Target |
target() |
long |
time() |
long |
time(int index) |
String |
toString() |
MetricsLogEntry.Type |
type() |
boolean |
valid() |
static void |
validateVersion(short version) |
short |
version() |
static int |
writeCounter(long counter,
MutableDirectBuffer dst,
int dstOffset) |
static int |
writeFrequencyMetricsHeader(short choice,
int repetition,
long interval,
long time,
MutableDirectBuffer dst,
int dstOffset) |
static int |
writeTime(long time,
MutableDirectBuffer dst,
int dstOffset) |
static int |
writeTimeMetricsHeader(byte flags,
short index,
int source,
long sequence,
long time,
MutableDirectBuffer dst,
int dstOffset) |
public FlyweightMetricsLogEntry init(DirectBuffer src, int srcOffset)
init in interface Flyweight<FlyweightMetricsLogEntry>public boolean valid()
public FlyweightMetricsLogEntry reset()
public short version()
version in interface MetricsLogEntrypublic byte flags()
flags in interface MetricsLogEntrypublic short index()
index in interface MetricsLogEntrypublic int source()
source in interface MetricsLogEntrypublic long sequence()
sequence in interface MetricsLogEntrypublic long time()
time in interface MetricsLogEntrypublic short choice()
choice in interface MetricsLogEntrypublic int repetition()
repetition in interface MetricsLogEntrypublic long interval()
interval in interface MetricsLogEntrypublic MetricsLogEntry.Type type()
type in interface MetricsLogEntrypublic TimeMetric.Target target()
target in interface MetricsLogEntrypublic int count()
count in interface MetricsLogEntrypublic long time(int index)
time in interface MetricsLogEntrypublic long counter(int index)
counter in interface MetricsLogEntrypublic static int writeTimeMetricsHeader(byte flags,
short index,
int source,
long sequence,
long time,
MutableDirectBuffer dst,
int dstOffset)
public static int writeTime(long time,
MutableDirectBuffer dst,
int dstOffset)
public static int writeFrequencyMetricsHeader(short choice,
int repetition,
long interval,
long time,
MutableDirectBuffer dst,
int dstOffset)
public static int writeCounter(long counter,
MutableDirectBuffer dst,
int dstOffset)
public static void validateVersion(short version)
Copyright © 2020 tools4j.org (Marco Terzer, Anton Anufriev). All Rights Reserved.