mirror of https://github.com/apache/activemq.git
use Kaha MapContainer for message storage instead of the Kaha ListContainer
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@503694 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d9ca5c07fd
commit
c4c9f0b983
|
@ -43,9 +43,10 @@ public interface Index{
|
||||||
* remove the index key
|
* remove the index key
|
||||||
*
|
*
|
||||||
* @param key
|
* @param key
|
||||||
|
* @return StoreEntry removed
|
||||||
* @throws IOException
|
* @throws IOException
|
||||||
*/
|
*/
|
||||||
public void remove(Object key) throws IOException;
|
public StoreEntry remove(Object key) throws IOException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* store the key, item
|
* store the key, item
|
||||||
|
|
|
@ -49,8 +49,8 @@ public class VMIndex implements Index{
|
||||||
* @param key
|
* @param key
|
||||||
* @see org.apache.activemq.kaha.impl.index.Index#removeKey(java.lang.Object)
|
* @see org.apache.activemq.kaha.impl.index.Index#removeKey(java.lang.Object)
|
||||||
*/
|
*/
|
||||||
public void remove(Object key){
|
public StoreEntry remove(Object key){
|
||||||
map.remove(key);
|
return map.remove(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue