biz.onixs.fix.engine.storage
Interface StorageRepository

All Known Implementing Classes:
AbstractStorageRepository, FileBasedStorageRepository, MemoryBasedStorageRepository, NullStorageRepository, TimingStorageRepository

public interface StorageRepository


Method Summary
 SessionStorage create(SessionId sessionId, boolean cleanStart)
          Creates session storage from scratch or restores from its previous state.
 long getMaxStorageSize()
          Returns the maximum size of the storage in messages.
 void setMaxStorageSize(long maxStorageSize)
          Sets the maximum size of the storage in messages.
 

Method Detail

create

SessionStorage create(SessionId sessionId,
                      boolean cleanStart)
Creates session storage from scratch or restores from its previous state.

Parameters:
sessionId - session id
cleanStart - clean previous session state if any
Returns:
session storage
Throws:
StorageException - if session storage creation failed

getMaxStorageSize

long getMaxStorageSize()
Returns the maximum size of the storage in messages.

Returns:
maximum size of the message storage

setMaxStorageSize

void setMaxStorageSize(long maxStorageSize)
Sets the maximum size of the storage in messages.

Parameters:
maxStorageSize - maximum size of the message storage
Throws:
IllegalArgumentException - if (maxStorageSize < 0)


Copyright © 2005-2012 Onix Solutions. All Rights Reserved.