Class CacheImpl
java.lang.Object
com.swiftmq.impl.queue.standard.queue.CacheImpl
- All Implemented Interfaces:
Cache
-
Constructor Summary
ConstructorDescriptionCacheImpl
(int maxMessages, int maxBytesKB, PersistentStore pStore, NonPersistentStore swapStore) -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
MessageEntry
int
int
int
int
void
void
void
setCacheTable
(Map cacheTable) void
setMaxBytesKB
(int maxBytesKB) void
setMaxMessages
(int maxMessages) toString()
-
Constructor Details
-
CacheImpl
public CacheImpl(int maxMessages, int maxBytesKB, PersistentStore pStore, NonPersistentStore swapStore)
-
-
Method Details
-
getCacheTable
- Specified by:
getCacheTable
in interfaceCache
-
setCacheTable
- Specified by:
setCacheTable
in interfaceCache
-
setMaxMessages
public void setMaxMessages(int maxMessages) - Specified by:
setMaxMessages
in interfaceCache
-
getMaxMessages
public int getMaxMessages()- Specified by:
getMaxMessages
in interfaceCache
-
getMaxBytesKB
public int getMaxBytesKB()- Specified by:
getMaxBytesKB
in interfaceCache
-
setMaxBytesKB
public void setMaxBytesKB(int maxBytesKB) - Specified by:
setMaxBytesKB
in interfaceCache
-
getCurrentMessages
public int getCurrentMessages()- Specified by:
getCurrentMessages
in interfaceCache
-
getCurrentBytesKB
public int getCurrentBytesKB()- Specified by:
getCurrentBytesKB
in interfaceCache
-
put
-
get
-
remove
-
clear
public void clear() -
toString
-