Class CachingPubsubPersistenceProvider

java.lang.Object
org.jivesoftware.openfire.pubsub.CachingPubsubPersistenceProvider
All Implemented Interfaces:
PubSubPersistenceProvider

public class CachingPubsubPersistenceProvider extends Object implements PubSubPersistenceProvider
A persistence provider for Pub/Sub functionality that adds caching behavior. Instead of 'writing through' to the persistence layer, the caching implementation will create batches of operations (optimizing away redundant actions). Additionally, recently accessed published data items are cached. This improves performance when processing many pub/sub operations (node modifiations, item publications, etc). This provider itself does not persist data. Instead, it uses a different persistence provider as a delegate to perform these actions.
Author:
Guus der Kinderen, guus@goodbytes.nl