Package com.swiftmq.swiftlet.store
Interface NonPersistentStore
-
public interface NonPersistentStore
A store for non-persistent messages (a swap store).- Author:
- IIT GmbH, Bremen/Germany, Copyright (c) 2000-2002, All Rights Reserved
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
Close the store and delete all content.void
delete(java.lang.Object key)
Delete a store entry.StoreEntry
get(java.lang.Object key)
Get a store entry.void
insert(StoreEntry storeEntry)
Insert a store entry.void
updateDeliveryCount(java.lang.Object key, int deliveryCount)
Update the delivery count of a store entry.
-
-
-
Method Detail
-
get
StoreEntry get(java.lang.Object key) throws StoreException
Get a store entry.- Parameters:
key
- the key.- Returns:
- store entry.
- Throws:
StoreException
- on error.
-
updateDeliveryCount
void updateDeliveryCount(java.lang.Object key, int deliveryCount) throws StoreException
Update the delivery count of a store entry.- Parameters:
key
- the key.deliveryCount
- new count.- Throws:
StoreException
- on error.
-
insert
void insert(StoreEntry storeEntry) throws StoreException
Insert a store entry.- Parameters:
storeEntry
- store entry.- Throws:
StoreException
- on error.
-
delete
void delete(java.lang.Object key) throws StoreException
Delete a store entry.- Parameters:
key
- the key.- Throws:
StoreException
- on error.
-
close
void close() throws StoreException
Close the store and delete all content.- Throws:
StoreException
- on error.
-
-