|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface I_Storage
Method Summary | |
---|---|
void |
addStorageSizeListener(I_StorageSizeListener listener)
Adds a storage size listener to the storage. |
long |
getMaxNumOfEntries()
Returns the maximum number of elements for this queue |
long |
getNumOfBytes()
Returns the amount of bytes currently in the queue If the implementation of this interface is not able to return the correct number of entries (for example if the implementation must make a remote call to a DB which is temporarly not available) it will return -1. |
long |
getNumOfEntries()
Returns the number of elements in this queue. |
StorageId |
getStorageId()
Returns the unique ID of this queue. |
I_StorageSizeListener[] |
getStorageSizeListeners()
|
boolean |
hasStorageSizeListener(I_StorageSizeListener listener)
Checks wether the specified listener is registered. |
boolean |
isShutdown()
Performs what has to be done when the Map Plugin shuts down. |
boolean |
isTransient()
|
void |
removeStorageSizeListener(I_StorageSizeListener listener)
Removes the specified listener from the queue. |
Method Detail |
---|
boolean isTransient()
StorageId getStorageId()
long getMaxNumOfEntries()
void removeStorageSizeListener(I_StorageSizeListener listener)
listener
- the listener to be removed. Currently only one.
If you pass null, all queueSizeListeners are removed.
java.lang.IllegalArgumentException
- if the listener was not foundboolean hasStorageSizeListener(I_StorageSizeListener listener)
listener
- the listener to check against. If you pass null
it checks if at least one listener exists.
I_StorageSizeListener[] getStorageSizeListeners()
void addStorageSizeListener(I_StorageSizeListener listener)
listener
- the listener to be added, adding the same listener multiple times will only remember one and fire once
java.lang.IllegalArgumentException
- if you pass nulllong getNumOfEntries()
long getNumOfBytes()
boolean isShutdown()
|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |