程序包 | 说明 |
---|---|
org.jboss.netty.handler.codec.serialization |
Encoder, decoder and their compatibility stream implementations which
transform a
Serializable object into a byte buffer and
vice versa. |
限定符和类型 | 方法和说明 |
---|---|
static ClassResolver |
ClassResolvers.cacheDisabled(java.lang.ClassLoader classLoader)
cache disabled
|
static ClassResolver |
ClassResolvers.softCachingConcurrentResolver(java.lang.ClassLoader classLoader)
agressive concurrent cache
good for shared cache, when we're not worried about class unloading
|
static ClassResolver |
ClassResolvers.softCachingResolver(java.lang.ClassLoader classLoader)
agressive non-concurrent cache
good for non-shared cache, when we're not worried about class unloading
|
static ClassResolver |
ClassResolvers.weakCachingConcurrentResolver(java.lang.ClassLoader classLoader)
non-agressive concurrent cache
good for shared cache, when we're worried about class unloading
|
static ClassResolver |
ClassResolvers.weakCachingResolver(java.lang.ClassLoader classLoader)
non-agressive non-concurrent cache
good for non-shared default cache
|
构造器和说明 |
---|
ObjectDecoder(ClassResolver classResolver)
Creates a new decoder whose maximum object size is
1048576
bytes. |
ObjectDecoder(int maxObjectSize,
ClassResolver classResolver)
Creates a new decoder with the specified maximum object size.
|