Interface RetainedPublish
- All Superinterfaces:
Publish
@DoNotImplement public interface RetainedPublish extends Publish
- Since:
- 4.0.0, CE 2019.1
-
Method Summary
Modifier and Type Method Description static @NotNull RetainedPublishBuilderbuilder()Deprecated.UseBuilders.retainedPublish()insteaddefault booleangetRetain()Iftruethis message is a retained message, forfalsethis is just a normal publish.Methods inherited from interface com.hivemq.extension.sdk.api.services.publish.Publish
getContentType, getCorrelationData, getMessageExpiryInterval, getPayload, getPayloadFormatIndicator, getQos, getResponseTopic, getTopic, getUserProperties
-
Method Details
-
builder
Deprecated.UseBuilders.retainedPublish()instead- Returns:
- A new
RetainedPublishBuilderto create a retained publish. - Since:
- 4.0.0, CE 2019.1
-
getRetain
default boolean getRetain()Iftruethis message is a retained message, forfalsethis is just a normal publish.
-