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 LogAccessor |
logger |
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, wait
serialize, serializeToByteArray
deserialize, deserializeFromByteArray
public static final int DEFAULT_MAX_MESSAGE_SIZE
protected final LogAccessor logger
public int getMaxMessageSize()
public void setMaxMessageSize(int maxMessageSize)
maxMessageSize
- The max message size.public void setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher)
setApplicationEventPublisher
in interface ApplicationEventPublisherAware
protected void checkClosure(int bite) throws IOException
IOException
protected void publishEvent(Exception cause, byte[] buffer, int offset)