Class Solace.PublishResult
java.lang.Object
org.apache.beam.sdk.io.solace.data.Solace.PublishResult
- Enclosing class:
Solace
@DefaultSchema(AutoValueSchema.class)
public abstract static class Solace.PublishResult
extends Object
The result of writing a message to Solace. This will be returned by the
SolaceIO.Write
connector.
This class provides a builder to create instances, but you will probably not need it. The
write connector will create and return instances of Solace.PublishResult
.
If the message has been published, getPublished()
will be true.
If it is false, it means that the message could not be published, and getError()
will contain more details about why the message could not be
published.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Solace.PublishResult.Builder
builder()
getError()
The error details if the message could not be published.The publishing latency in nanoseconds.abstract String
The message id of the message that was published.abstract Boolean
Whether the message was published or not.
-
Constructor Details
-
PublishResult
public PublishResult()
-
-
Method Details
-
getMessageId
The message id of the message that was published. -
getPublished
Whether the message was published or not. -
getLatencyNanos
The publishing latency in nanoseconds. This is the difference between the time the message was created, and the time the message was published. It is only available if theSolace.CorrelationKey
class is used as correlation key of the messages, and null otherwise. -
getError
The error details if the message could not be published. -
builder
-