Package net.spy.memcached.transcoders
Class TranscodeService
- java.lang.Object
-
- net.spy.memcached.compat.SpyObject
-
- net.spy.memcached.transcoders.TranscodeService
-
public class TranscodeService extends SpyObject
Asynchronous transcoder.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
TranscodeService.Task<T>
-
Field Summary
Fields Modifier and Type Field Description private java.util.concurrent.ThreadPoolExecutor
pool
-
Constructor Summary
Constructors Constructor Description TranscodeService(boolean daemon)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> java.util.concurrent.Future<T>
decode(Transcoder<T> tc, CachedData cachedData)
Perform a decode.boolean
isShutdown()
Ask whether this service has been shut down.void
shutdown()
Shut down the pool.
-
-
-
Method Detail
-
decode
public <T> java.util.concurrent.Future<T> decode(Transcoder<T> tc, CachedData cachedData)
Perform a decode.
-
shutdown
public void shutdown()
Shut down the pool.
-
isShutdown
public boolean isShutdown()
Ask whether this service has been shut down.
-
-