Record Class OdysseyRequestContext
java.lang.Object
java.lang.Record
io.confluent.kafka.odyssey.OdysseyRequestContext
public record OdysseyRequestContext(org.apache.kafka.common.message.CreateTopicsRequestData request, String namespace, String schemaRegistryUrl, Optional<String> lsrcId, BiFunction<org.apache.kafka.common.message.CreateTopicsRequestData, Set<String>, CompletableFuture<org.apache.kafka.common.message.CreateTopicsResponseData>> topicCreator)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionOdysseyRequestContext(org.apache.kafka.common.message.CreateTopicsRequestData request, String namespace, String schemaRegistryUrl, Optional<String> lsrcId, BiFunction<org.apache.kafka.common.message.CreateTopicsRequestData, Set<String>, CompletableFuture<org.apache.kafka.common.message.CreateTopicsResponseData>> topicCreator) Creates an instance of aOdysseyRequestContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanlsrcId()Returns the value of thelsrcIdrecord component.Returns the value of thenamespacerecord component.org.apache.kafka.common.message.CreateTopicsRequestDatarequest()Returns the value of therequestrecord component.Returns the value of theschemaRegistryUrlrecord component.BiFunction<org.apache.kafka.common.message.CreateTopicsRequestData, Set<String>, CompletableFuture<org.apache.kafka.common.message.CreateTopicsResponseData>> Returns the value of thetopicCreatorrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OdysseyRequestContext
public OdysseyRequestContext(org.apache.kafka.common.message.CreateTopicsRequestData request, String namespace, String schemaRegistryUrl, Optional<String> lsrcId, BiFunction<org.apache.kafka.common.message.CreateTopicsRequestData, Set<String>, CompletableFuture<org.apache.kafka.common.message.CreateTopicsResponseData>> topicCreator) Creates an instance of aOdysseyRequestContextrecord class.- Parameters:
request- the value for therequestrecord componentnamespace- the value for thenamespacerecord componentschemaRegistryUrl- the value for theschemaRegistryUrlrecord componentlsrcId- the value for thelsrcIdrecord componenttopicCreator- the value for thetopicCreatorrecord component
-
-
Method Details
-
isValidateOnly
public boolean isValidateOnly() -
toString
-
hashCode
-
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). -
request
public org.apache.kafka.common.message.CreateTopicsRequestData request()Returns the value of therequestrecord component.- Returns:
- the value of the
requestrecord component
-
namespace
Returns the value of thenamespacerecord component.- Returns:
- the value of the
namespacerecord component
-
schemaRegistryUrl
Returns the value of theschemaRegistryUrlrecord component.- Returns:
- the value of the
schemaRegistryUrlrecord component
-
lsrcId
-
topicCreator
public BiFunction<org.apache.kafka.common.message.CreateTopicsRequestData, Set<String>, CompletableFuture<org.apache.kafka.common.message.CreateTopicsResponseData>> topicCreator()Returns the value of thetopicCreatorrecord component.- Returns:
- the value of the
topicCreatorrecord component
-