Package org.infinispan.functional.impl
Class StatsEnvelope<T>
- java.lang.Object
-
- org.infinispan.functional.impl.StatsEnvelope<T>
-
public class StatsEnvelope<T> extends Object
Responses for functional commands that allow to record statistics.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StatsEnvelope.Externalizer
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <R> StatsEnvelope
create(R ret, boolean isNull)
static <T> StatsEnvelope<T>
create(T returnValue, CacheEntry<?,?> e, boolean exists, boolean isRead)
byte
flags()
boolean
isDelete()
boolean
isHit()
boolean
isMiss()
String
toString()
static Object
unpack(InvocationContext ctx, VisitableCommand command, Object o)
static Object
unpackCollection(InvocationContext ctx, VisitableCommand command, Object o)
static Object
unpackStream(InvocationContext ctx, VisitableCommand command, Object o)
T
value()
-
-
-
Field Detail
-
HIT
public static final byte HIT
- See Also:
- Constant Field Values
-
MISS
public static final byte MISS
- See Also:
- Constant Field Values
-
CREATE
public static final byte CREATE
- See Also:
- Constant Field Values
-
UPDATE
public static final byte UPDATE
- See Also:
- Constant Field Values
-
DELETE
public static final byte DELETE
- See Also:
- Constant Field Values
-
-
Method Detail
-
create
public static <T> StatsEnvelope<T> create(T returnValue, CacheEntry<?,?> e, boolean exists, boolean isRead)
-
create
public static <R> StatsEnvelope create(R ret, boolean isNull)
-
unpack
public static Object unpack(InvocationContext ctx, VisitableCommand command, Object o)
-
unpackCollection
public static Object unpackCollection(InvocationContext ctx, VisitableCommand command, Object o)
-
unpackStream
public static Object unpackStream(InvocationContext ctx, VisitableCommand command, Object o)
-
value
public T value()
-
flags
public byte flags()
-
isHit
public boolean isHit()
-
isMiss
public boolean isMiss()
-
isDelete
public boolean isDelete()
-
-