public class CachingPublisherFactory extends Object implements PublisherFactory
PublisherFactory
.
Creates Publisher
s for topics once using delegate, caches and reuses them.
Constructor and Description |
---|
CachingPublisherFactory(PublisherFactory delegate)
Constructs a caching
PublisherFactory using the delegate. |
Modifier and Type | Method and Description |
---|---|
PublisherInterface |
createPublisher(String topic) |
PublisherFactory |
getDelegate()
Returns the delegate.
|
public CachingPublisherFactory(PublisherFactory delegate)
PublisherFactory
using the delegate.delegate
- a PublisherFactory
that needs to be cachecd.public PublisherInterface createPublisher(String topic)
createPublisher
in interface PublisherFactory
public PublisherFactory getDelegate()
Copyright © 2021. All rights reserved.