Package com.swiftmq.swiftlet.store
Interface NonPersistentStore
-
public interface NonPersistentStoreA 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 voidclose()Close the store and delete all content.voiddelete(java.lang.Object key)Delete a store entry.StoreEntryget(java.lang.Object key)Get a store entry.voidinsert(StoreEntry storeEntry)Insert a store entry.voidupdateDeliveryCount(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 StoreExceptionUpdate 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 StoreExceptionDelete a store entry.- Parameters:
key- the key.- Throws:
StoreException- on error.
-
close
void close() throws StoreExceptionClose the store and delete all content.- Throws:
StoreException- on error.
-
-