Method Summary
All Methods Instance Methods Abstract Methods Default Methods
void
An utility method to call addSize(size, false); this is a good fit for an IntConsumer.
addSize (int size,
boolean sizeOnly)
Add size at the global count level.
An utility method to call addSize(size, true); this is a good fit for an IntConsumer.
void
Point to inform/restoring Transactions used when the messages were added into paging
void
Use this when you have no refernce of an address.
default void
Use this when you have no refernce of an address.
void
void
void
default void
Execute a runnable inside the PagingManager's executor
default void
long
long
default long
default long
default long
default long
Returns the PageStore associated with the address; a new page store is created if necessary.
Point to inform/restoring Transactions used when the messages were added into paging
void
boolean
boolean
default boolean
boolean
void
void
Rebuilds all page counters for destinations that are paging in the background.
void
Reload previously created PagingStores into memory
void
void
void
Method Details
getPageStore
Returns the PageStore associated with the address; a new page store is created if necessary.
Returns:
the PageStore associated with the address; a new page store is created if necessary
Throws:
Exception
addTransaction
Point to inform/restoring Transactions used when the messages were added into paging
getTransaction
Point to inform/restoring Transactions used when the messages were added into paging
removeTransaction
void removeTransaction (long transactionID)
reloadStores
Reload previously created PagingStores into memory
Throws:
Exception
deletePageStore
Throws:
Exception
disableCleanup
void disableCleanup ()
resumeCleanup
void resumeCleanup ()
execute
Execute a runnable inside the PagingManager's executor
lock
void lock ()
Lock the manager. This method should not be called during normal PagingManager usage.
unlock
void unlock ()
Unlock the manager.
See Also:
addSize
Add size at the global count level. If sizeOnly = true, only the size portion is updated. If false both the
counter for bytes and number of messages is updated.
addSize
An utility method to call addSize(size, false); this is a good fit for an IntConsumer.
addSizeOnly
An utility method to call addSize(size, true); this is a good fit for an IntConsumer.
isUsingGlobalSize
boolean isUsingGlobalSize ()
isGlobalFull
boolean isGlobalFull ()
isDiskFull
boolean isDiskFull ()
getDiskUsableSpace
long getDiskUsableSpace ()
getDiskTotalSpace
long getDiskTotalSpace ()
getGlobalSize
default long getGlobalSize ()
getGlobalMessages
default long getGlobalMessages ()
checkMemory
void checkMemory (Runnable runWhenAvailable)
Use this when you have no refernce of an address. (anonymous AMQP Producers for example)
counterSnapshot
void counterSnapshot ()
checkStorage
default void checkStorage (Runnable runWhenAvailable)
Use this when you have no refernce of an address. (anonymous AMQP Producers for example)
getMaxSize
default long getMaxSize ()
getMaxMessages
default long getMaxMessages ()
rebuildCounters
Rebuilds all page counters for destinations that are paging in the background.
isRebuildingCounters
default boolean isRebuildingCounters ()