public class MamdaOrderBookEntryManager
extends java.lang.Object
Constructor and Description |
---|
MamdaOrderBookEntryManager(int approxCount)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addEntry(MamdaOrderBookEntry entry)
Add an entry to the manager.
|
void |
addEntry(MamdaOrderBookEntry entry,
java.lang.String entryId)
Add an entry to the manager using a specific entry ID, which
may be different from the entry's entry ID.
|
void |
clear()
Clear all entries from the manager.
|
void |
clear(java.lang.String symbol)
Clear all entries for a particular symbol from the manager.
|
MamdaOrderBookEntry |
findEntry(java.lang.String entryId,
boolean mustExist)
Find an entry in the manager.
|
void |
removeEntry(java.lang.String entryId)
Remove an entry from the manager.
|
public MamdaOrderBookEntryManager(int approxCount)
approxCount
- Approximate number of entries.public void clear()
public void clear(java.lang.String symbol)
symbol
- the symbol.public void addEntry(MamdaOrderBookEntry entry)
entry
- the entry to add.public void addEntry(MamdaOrderBookEntry entry, java.lang.String entryId)
entry
- the entry to add.entryId
- the entry id to use.public MamdaOrderBookEntry findEntry(java.lang.String entryId, boolean mustExist)
entryId
- The entry id to search for.mustExist
- true if the entry must exist.public void removeEntry(java.lang.String entryId)
entryId
- the id for the entry to be removed.Copyright 2007 Wombat Financial Software, Inc.