biz.onixs.fix.engine.storage
Class AbstractStorageRepository

java.lang.Object
  extended by biz.onixs.fix.engine.storage.AbstractStorageRepository
All Implemented Interfaces:
StorageRepository
Direct Known Subclasses:
FileBasedStorageRepository, MemoryBasedStorageRepository, NullStorageRepository

public abstract class AbstractStorageRepository
extends Object
implements StorageRepository


Field Summary
protected  boolean keepInMessages
           
protected  long maxStorageSize
           
 
Constructor Summary
AbstractStorageRepository()
           
 
Method Summary
 long getMaxStorageSize()
          Returns the maximum size of the storage in messages.
 boolean isKeepInMessages()
          Returns whether incoming messages are kept for future access.
 void setKeepInMessages(boolean keepInMessages)
          Sets whether to keep incoming messages for future access.
 void setMaxStorageSize(long maxStorageSize)
          Sets the maximum size of the storage in messages.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface biz.onixs.fix.engine.storage.StorageRepository
create
 

Field Detail

maxStorageSize

protected long maxStorageSize

keepInMessages

protected boolean keepInMessages
Constructor Detail

AbstractStorageRepository

public AbstractStorageRepository()
Method Detail

setKeepInMessages

public void setKeepInMessages(boolean keepInMessages)
Sets whether to keep incoming messages for future access.

Parameters:
keepInMessages - keep out messages

isKeepInMessages

public boolean isKeepInMessages()
Returns whether incoming messages are kept for future access.

Returns:
keep out messages

getMaxStorageSize

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

Specified by:
getMaxStorageSize in interface StorageRepository
Returns:
maximum size of the message storage

setMaxStorageSize

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

Specified by:
setMaxStorageSize in interface StorageRepository
Parameters:
maxStorageSize - maximum size of the message storage
Throws:
IllegalArgumentException - if (maxStorageSize < 0)


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