public abstract class AbstractByteArraySerializer extends Object implements Serializer<byte[]>, Deserializer<byte[]>, ApplicationEventPublisherAware
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_MAX_MESSAGE_SIZE
The default maximum message size when deserializing.
|
protected Log |
logger |
protected int |
maxMessageSize
Deprecated.
|
| Constructor and Description |
|---|
AbstractByteArraySerializer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkClosure(int bite) |
int |
getMaxMessageSize()
The maximum supported message size for this serializer.
|
protected void |
publishEvent(Exception cause,
byte[] buffer,
int offset) |
void |
setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher) |
void |
setMaxMessageSize(int maxMessageSize)
The maximum supported message size for this serializer.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitserializedeserializepublic static final int DEFAULT_MAX_MESSAGE_SIZE
@Deprecated protected int maxMessageSize
protected final Log logger
public int getMaxMessageSize()
public void setMaxMessageSize(int maxMessageSize)
maxMessageSize - The max message size.public void setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher)
setApplicationEventPublisher in interface ApplicationEventPublisherAwareprotected void checkClosure(int bite)
throws IOException
IOExceptionprotected void publishEvent(Exception cause, byte[] buffer, int offset)