Overview
//trimblecloud-events/trimblecloud.events/PublisherFactory
PublisherFactory
[JVM]
open class PublisherFactory
The PublisherFactory class is responsible for creating a publisher factory instance.
Constructors
| PublisherFactory | [JVM] constructor(publisherType: PublisherType, properties: Properties, registry: MeterRegistry) |
Functions
| Name | Summary |
|---|---|
| close | [JVM] open fun close() Closes the publisher and releases any resources. |
| createEventsPublisher | [JVM] open fun createEventsPublisher(responseCallback: BiConsumer<PublisherRequest, PublisherException>): Publisher Create a publisher that handles batch processing internally. |
| createEventsSimplePublisher | [JVM] open fun createEventsSimplePublisher(responseCallback: BiConsumer<BatchAck, PublisherException>): Publisher Create a publisher that allows client to handles event batching explicitly. |