Package app.ductape.sdk.brokers.types
Record Class BrokerTypes.IdempotentPublishOptions
java.lang.Object
java.lang.Record
app.ductape.sdk.brokers.types.BrokerTypes.IdempotentPublishOptions
- Enclosing class:
- BrokerTypes
-
Constructor Summary
ConstructorsConstructorDescriptionIdempotentPublishOptions(String product, String env, String event, Map<String, Object> message, String cache, Map<String, Object> session, BrokerTypes.ProducerOptions producer, String idempotencyKey, Integer idempotencyTtl) Creates an instance of aIdempotentPublishOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncache()Returns the value of thecacherecord component.env()Returns the value of theenvrecord component.final booleanIndicates whether some other object is "equal to" this one.event()Returns the value of theeventrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theidempotencyKeyrecord component.Returns the value of theidempotencyTtlrecord component.message()Returns the value of themessagerecord component.producer()Returns the value of theproducerrecord component.product()Returns the value of theproductrecord component.session()Returns the value of thesessionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
IdempotentPublishOptions
public IdempotentPublishOptions(String product, String env, String event, Map<String, Object> message, String cache, Map<String, Object> session, BrokerTypes.ProducerOptions producer, String idempotencyKey, Integer idempotencyTtl) Creates an instance of aIdempotentPublishOptionsrecord class.- Parameters:
product- the value for theproductrecord componentenv- the value for theenvrecord componentevent- the value for theeventrecord componentmessage- the value for themessagerecord componentcache- the value for thecacherecord componentsession- the value for thesessionrecord componentproducer- the value for theproducerrecord componentidempotencyKey- the value for theidempotencyKeyrecord componentidempotencyTtl- the value for theidempotencyTtlrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
product
Returns the value of theproductrecord component.- Returns:
- the value of the
productrecord component
-
env
Returns the value of theenvrecord component.- Returns:
- the value of the
envrecord component
-
event
Returns the value of theeventrecord component.- Returns:
- the value of the
eventrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
cache
Returns the value of thecacherecord component.- Returns:
- the value of the
cacherecord component
-
session
Returns the value of thesessionrecord component.- Returns:
- the value of the
sessionrecord component
-
producer
Returns the value of theproducerrecord component.- Returns:
- the value of the
producerrecord component
-
idempotencyKey
Returns the value of theidempotencyKeyrecord component.- Returns:
- the value of the
idempotencyKeyrecord component
-
idempotencyTtl
Returns the value of theidempotencyTtlrecord component.- Returns:
- the value of the
idempotencyTtlrecord component
-