@DefaultSchema(value=AutoValueSchema.class) public abstract static class Solace.PublishResult extends java.lang.Object
com.google.cloud.dataflow.dce.io.solace.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.
Modifier and Type | Class and Description |
---|---|
static class |
Solace.PublishResult.Builder |
Constructor and Description |
---|
PublishResult() |
Modifier and Type | Method and Description |
---|---|
static Solace.PublishResult.Builder |
builder() |
abstract @Nullable java.lang.String |
getError()
The error details if the message could not be published.
|
abstract @Nullable java.lang.Long |
getLatencyMilliseconds()
The publishing latency in milliseconds.
|
abstract java.lang.String |
getMessageId()
The message id of the message that was published.
|
abstract java.lang.Boolean |
getPublished()
Whether the message was published or not.
|
@SchemaFieldNumber(value="0") public abstract java.lang.String getMessageId()
@SchemaFieldNumber(value="1") public abstract java.lang.Boolean getPublished()
@SchemaFieldNumber(value="2") public abstract @Nullable java.lang.Long getLatencyMilliseconds()
Solace.CorrelationKey
class is used as correlation key of the messages.@SchemaFieldNumber(value="3") public abstract @Nullable java.lang.String getError()
public static Solace.PublishResult.Builder builder()