public final class LongTranscoder extends SpyObject implements Transcoder<Long>
Constructor and Description |
---|
LongTranscoder() |
Modifier and Type | Method and Description |
---|---|
boolean |
asyncDecode(CachedData d)
Should the transcoder be run asyncronously.
|
Long |
decode(CachedData d)
Decode the cached object into the object it represents.
|
CachedData |
encode(Long l)
Encode the given object for storage.
|
int |
getMaxSize()
Get the maximum size of objects handled by this transcoder.
|
public boolean asyncDecode(CachedData d)
Transcoder
asyncDecode
in interface Transcoder<Long>
public CachedData encode(Long l)
Transcoder
encode
in interface Transcoder<Long>
l
- the objectpublic Long decode(CachedData d)
Transcoder
decode
in interface Transcoder<Long>
d
- the datapublic int getMaxSize()
Transcoder
getMaxSize
in interface Transcoder<Long>
Copyright © 2022. All rights reserved.