|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Transcoder<T>
Transcoder is an interface for classes that convert between byte arrays and objects for storage in the cache.
| Method Summary | |
|---|---|
T |
decode(CachedData d)
Decode the cached object into the object it represents. |
CachedData |
encode(T o)
Encode the given object for storage. |
boolean |
isPackZeros()
|
boolean |
isPrimitiveAsString()
|
void |
setCompressionThreshold(int to)
|
void |
setPackZeros(boolean packZeros)
Set whether pack zeros |
void |
setPrimitiveAsString(boolean primitiveAsString)
Set whether store primitive type as string. |
| Method Detail |
|---|
CachedData encode(T o)
o - the object
T decode(CachedData d)
d - the data
void setPrimitiveAsString(boolean primitiveAsString)
primitiveAsString - void setPackZeros(boolean packZeros)
primitiveAsString - void setCompressionThreshold(int to)
boolean isPrimitiveAsString()
boolean isPackZeros()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||