Package org.nuxeo.runtime.pubsub
Class MemPubSubProvider
java.lang.Object
org.nuxeo.runtime.pubsub.AbstractPubSubProvider
org.nuxeo.runtime.pubsub.MemPubSubProvider
- All Implemented Interfaces:
- PubSubProvider
In-Memory implementation of 
PubSubProvider.- Since:
- 9.1
- 
Field SummaryFields inherited from class org.nuxeo.runtime.pubsub.AbstractPubSubProvidernamespace, subscribers
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()Frees the resources.voidinitialize(Map<String, String> options, Map<String, List<BiConsumer<String, byte[]>>> subscribers) Initializes the resources for this provider and registers the local subscribers map.voidPublishes a message to the given topic.Methods inherited from class org.nuxeo.runtime.pubsub.AbstractPubSubProviderlocalPublish
- 
Constructor Details- 
MemPubSubProviderpublic MemPubSubProvider()
 
- 
- 
Method Details- 
initializepublic void initialize(Map<String, String> options, Map<String, List<BiConsumer<String, byte[]>>> subscribers) Description copied from interface:PubSubProviderInitializes the resources for this provider and registers the local subscribers map.The options taken from the PubSubProviderDescriptorThe subscribers map structure is thread-safe. The implementation must not modify the subscribers map in any way.- Specified by:
- initializein interface- PubSubProvider
- Overrides:
- initializein class- AbstractPubSubProvider
 
- 
closepublic void close()Description copied from interface:PubSubProviderFrees the resources.- Specified by:
- closein interface- PubSubProvider
- Overrides:
- closein class- AbstractPubSubProvider
 
- 
publishDescription copied from interface:PubSubProviderPublishes a message to the given topic.- Parameters:
- topic- the topic
- message- the message
 
 
-