public class TimingStorageRepository extends Object implements StorageRepository
Constructor and Description |
---|
TimingStorageRepository(StorageRepository repository) |
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 |
getMaxStorageSize()
Returns the maximum size of the storage in messages.
|
void |
setMaxStorageSize(int maxStorageSize)
Sets the maximum size of the storage in messages.
|
public TimingStorageRepository(StorageRepository repository)
public SessionStorage create(SessionId sessionId, ByteDecoder decoder, boolean cleanStart)
StorageRepository
create
in interface StorageRepository
sessionId
- session iddecoder
- byte decodercleanStart
- clean previous session state if anypublic int getMaxStorageSize()
StorageRepository
getMaxStorageSize
in interface StorageRepository
public void setMaxStorageSize(int maxStorageSize)
StorageRepository
setMaxStorageSize
in interface StorageRepository
maxStorageSize
- maximum size of the message storageCopyright © 2005–2024 Onix Solutions. All rights reserved.