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)
StorageRepositorycreate in interface StorageRepositorysessionId - session iddecoder - byte decodercleanStart - clean previous session state if anypublic int getMaxStorageSize()
StorageRepositorygetMaxStorageSize in interface StorageRepositorypublic void setMaxStorageSize(int maxStorageSize)
StorageRepositorysetMaxStorageSize in interface StorageRepositorymaxStorageSize - maximum size of the message storageCopyright © 2005–2025 Onix Solutions. All rights reserved.