|
||||||||||
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 | |
---|---|
boolean |
asyncDecode(CachedData d)
Should the transcoder be run asyncronously. |
T |
decode(CachedData d)
Decode the cached object into the object it represents. |
CachedData |
encode(T o)
Encode the given object for storage. |
int |
getMaxSize()
Get the maximum size of objects handled by this transcoder. |
Method Detail |
---|
boolean asyncDecode(CachedData d)
CachedData encode(T o)
o
- the object
T decode(CachedData d)
d
- the data
int getMaxSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |