JavaType - the Java type handled by this TypeHandler implementationpublic abstract class AbstractTypeHandler<JavaType> extends java.lang.Object implements TypeHandler<JavaType>
TypeHandler.getMetricType()| Modifier and Type | Field and Description |
|---|---|
private int |
dataLength |
private MmvMetricType |
type |
| Constructor and Description |
|---|
AbstractTypeHandler(MmvMetricType type,
int dataLength) |
| Modifier and Type | Method and Description |
|---|---|
int |
getDataLength() |
MmvMetricType |
getMetricType() |
boolean |
requiresLargeStorage() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitputBytesprivate final MmvMetricType type
private final int dataLength
public AbstractTypeHandler(MmvMetricType type, int dataLength)
public MmvMetricType getMetricType()
getMetricType in interface TypeHandler<JavaType>MmvMetricType used by PCP to understand the bytes written by
TypeHandler.putBytes(ByteBuffer, Object)public int getDataLength()
getDataLength in interface TypeHandler<JavaType>public boolean requiresLargeStorage()
requiresLargeStorage in interface TypeHandler<JavaType>