public abstract class AbstractPooledBufferByteArraySerializer extends AbstractByteArraySerializer
DEFAULT_MAX_MESSAGE_SIZE, logger| コンストラクターと説明 |
|---|
AbstractPooledBufferByteArraySerializer() |
| 修飾子と型 | メソッドと説明 |
|---|---|
protected byte[] | copyToSizedArray(byte[] buffer, int size)size バイトを正確に size バイト長の新しいバッファーにコピーします。 |
byte[] | deserialize(InputStreamSE inputStream) |
protected abstract byte[] | doDeserialize(InputStreamSE inputStream, byte[] buffer) |
void | setPoolSize(int size) 逆直列化バッファーのプールサイズを設定します。 |
void | setPoolWaitTimeout(long poolWaitTimeout) プールが構成されている場合、プール待機タイムアウトを設定します。デフォルトは無制限です。 |
checkClosure, getMaxMessageSize, publishEvent, setApplicationEventPublisher, setMaxMessageSizecloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEserialize, serializeToByteArraydeserializeFromByteArraypublic void setPoolSize(int size)
size - サイズ、無制限の場合は -1。public void setPoolWaitTimeout(long poolWaitTimeout)
poolWaitTimeout - タイムアウト。public final byte[] deserialize(InputStreamSE inputStream) throws IOExceptionSE
protected abstract byte[] doDeserialize(InputStreamSE inputStream, byte[] buffer) throws IOExceptionSE
inputStream - 入力ストリーム。buffer - 生の作業バッファ (maxMessageSize)。IOExceptionSE - io 例外。protected byte[] copyToSizedArray(byte[] buffer,
int size)buffer - データを含むバッファ。size - コピーするバイト数。