public abstract class BaseSerializingTranscoder extends SpyObject
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_COMPRESSION_THRESHOLD
Default compression threshold value.
|
| Constructor and Description |
|---|
BaseSerializingTranscoder(int max)
Initialize a serializing transcoder with the given maximum data size.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
asyncDecode(CachedData d) |
int |
getMaxSize() |
void |
setCharset(java.lang.String to)
Set the character set for string value transcoding (defaults to UTF-8).
|
void |
setCompressionThreshold(int to)
Set the compression threshold to the given number of bytes.
|
public static final int DEFAULT_COMPRESSION_THRESHOLD
public BaseSerializingTranscoder(int max)
public boolean asyncDecode(CachedData d)
public void setCompressionThreshold(int to)
to - the number of bytespublic void setCharset(java.lang.String to)
public int getMaxSize()