public interface Transcoder<T>
Modifier and Type | Method and Description |
---|---|
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.
|
boolean asyncDecode(CachedData d)
CachedData encode(T o)
o
- the objectT decode(CachedData d)
d
- the dataint getMaxSize()
Copyright © 2006-2009 Dustin Sallings, 2009-2013 Couchbase, Inc.