public class AsyncFileStorageRepository extends AbstractStorageRepository
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_ASYNC_QUEUE_SIZE |
static int |
DEFAULT_WRITE_ERROR_NUMBER |
Constructor and Description |
---|
AsyncFileStorageRepository() |
Modifier and Type | Method and Description |
---|---|
SessionStorage |
create(SessionId sessionId,
ByteDecoder decoder,
boolean cleanStart)
Creates session storage from scratch or restores from its previous state.
|
int |
getAsyncQueueSize()
Returns asynchronous operations queue size.
|
int |
getWriteErrorRetriesNumber()
Returns write error retries number.
|
void |
setAsyncQueueSize(int asyncQueueSize)
Sets asynchronous operations queue size.
|
void |
setWriteErrorRetriesNumber(int writeErrorRetriesNumber)
Sets write error retries number.
|
String |
toString() |
getMaxStorageSize, setMaxStorageSize
public static final int DEFAULT_ASYNC_QUEUE_SIZE
public static final int DEFAULT_WRITE_ERROR_NUMBER
public int getAsyncQueueSize()
public void setAsyncQueueSize(int asyncQueueSize)
asyncQueueSize
- asynchronous operations queue sizeIllegalArgumentException
- if asyncBufferSize < 1
public int getWriteErrorRetriesNumber()
public void setWriteErrorRetriesNumber(int writeErrorRetriesNumber)
writeErrorRetriesNumber
- write error retries numberIllegalArgumentException
- if writeErrorRetriesNumber < 0
public SessionStorage create(SessionId sessionId, ByteDecoder decoder, boolean cleanStart)
StorageRepository
sessionId
- session iddecoder
- byte decodercleanStart
- clean previous session state if anyCopyright © 2005–2024 Onix Solutions. All rights reserved.