Package | Description |
---|---|
io.netty.handler.codec.serialization |
Encoder, decoder and their compatibility stream implementations which
transform a
Serializable object into a byte buffer and
vice versa. |
Modifier and Type | Method and Description |
---|---|
static ClassResolver |
ClassResolvers.cacheDisabled(ClassLoader classLoader)
cache disabled
|
static ClassResolver |
ClassResolvers.softCachingConcurrentResolver(ClassLoader classLoader)
aggressive concurrent cache
good for shared cache, when we're not worried about class unloading
|
static ClassResolver |
ClassResolvers.softCachingResolver(ClassLoader classLoader)
aggressive non-concurrent cache
good for non-shared cache, when we're not worried about class unloading
|
static ClassResolver |
ClassResolvers.weakCachingConcurrentResolver(ClassLoader classLoader)
non-aggressive concurrent cache
good for shared cache, when we're worried about class unloading
|
static ClassResolver |
ClassResolvers.weakCachingResolver(ClassLoader classLoader)
non-aggressive non-concurrent cache
good for non-shared default cache
|
Constructor and Description |
---|
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.
|
Copyright © 2008–2019 The Netty Project. All rights reserved.