Package app.ductape.sdk.brokers.types
Record Class BrokerTypes.SubscribeOptions
java.lang.Object
java.lang.Record
app.ductape.sdk.brokers.types.BrokerTypes.SubscribeOptions
- Enclosing class:
- BrokerTypes
public static record BrokerTypes.SubscribeOptions(String product, String env, String event, BrokerTypes.MessageCallback callback, BrokerTypes.ConsumerOptions consumer)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSubscribeOptions(String product, String env, String event, BrokerTypes.MessageCallback callback, BrokerTypes.ConsumerOptions consumer) Creates an instance of aSubscribeOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncallback()Returns the value of thecallbackrecord component.consumer()Returns the value of theconsumerrecord 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.product()Returns the value of theproductrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SubscribeOptions
public SubscribeOptions(String product, String env, String event, BrokerTypes.MessageCallback callback, BrokerTypes.ConsumerOptions consumer) Creates an instance of aSubscribeOptionsrecord class.- Parameters:
product- the value for theproductrecord componentenv- the value for theenvrecord componentevent- the value for theeventrecord componentcallback- the value for thecallbackrecord componentconsumer- the value for theconsumerrecord 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
-
callback
Returns the value of thecallbackrecord component.- Returns:
- the value of the
callbackrecord component
-
consumer
Returns the value of theconsumerrecord component.- Returns:
- the value of the
consumerrecord component
-