Package org.infinispan.functional.impl
Class StatsEnvelope<T>
java.lang.Object
org.infinispan.functional.impl.StatsEnvelope<T>
Responses for functional commands that allow to record statistics.
-
Nested Class Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <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()
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) value()
-
Field Details
-
HIT
public static final byte HIT- See Also:
-
MISS
public static final byte MISS- See Also:
-
CREATE
public static final byte CREATE- See Also:
-
UPDATE
public static final byte UPDATE- See Also:
-
DELETE
public static final byte DELETE- See Also:
-
-
Method Details
-
create
public static <T> StatsEnvelope<T> create(T returnValue, CacheEntry<?, ?> e, boolean exists, boolean isRead) -
create
-
unpack
-
unpackCollection
-
unpackStream
-
value
-
flags
public byte flags() -
toString
-
isHit
public boolean isHit() -
isMiss
public boolean isMiss() -
isDelete
public boolean isDelete()
-