biz.onixs.fix.engine.storage
Class AbstractSessionStorage

java.lang.Object
  extended by biz.onixs.fix.engine.storage.AbstractSessionStorage
All Implemented Interfaces:
SessionStorage
Direct Known Subclasses:
FileBasedSessionStorage, MemoryBasedSessionStorage, NullSessionStorage

public abstract class AbstractSessionStorage
extends Object
implements SessionStorage


Field Summary
protected  boolean keepInMessages
           
protected  long maxStorageSize
           
 
Constructor Summary
AbstractSessionStorage()
           
 
Method Summary
 long getMaxStorageSize()
          Returns the maximum size of the message storage.
 void setMaxStorageSize(long maxStorageSize)
          Sets the maximum size of the message storage.
 
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.SessionStorage
clear, close, getId, getInSeqNum, getMessage, getMessages, getOutSeqNum, isTerminated, open, setInSeqNum, setOutSeqNum, setTerminated, storeMessage, storeMessage
 

Field Detail

maxStorageSize

protected long maxStorageSize

keepInMessages

protected boolean keepInMessages
Constructor Detail

AbstractSessionStorage

public AbstractSessionStorage()
Method Detail

setMaxStorageSize

public void setMaxStorageSize(long maxStorageSize)
Sets the maximum size of the message storage. The details depend on the selected storage implementation.

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

getMaxStorageSize

public long getMaxStorageSize()
Returns the maximum size of the message storage. The details depend on the selected storage implementation.

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


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