Overview
//trimblecloud-events/trimblecloud.events.service.publish/Publisher
Publisher
interface Publisher
This interface represents a publisher that is responsible for publishing events. It provides methods to publish individual events or event batches, check the status of the publisher, and close the publisher when it is no longer needed.
Functions
| Name | Summary |
|---|---|
| close | [JVM] abstract fun close() This method is used to close the publisher, once the events are published. |
| getStatus | [JVM] abstract fun getStatus(): Status This method is used to check the state of the client. |
| isActive | [JVM] abstract fun isActive(): Boolean This method is used to check if the client is active (connection has been successfully established. |
| publish | [JVM] abstract fun publish(batch: EventBatch) This method is used to publish an event batch. [JVM] abstract fun publish(request: PublisherRequest) This method is used to publish an event. |