Record Class OdysseyFlowRecords.OdysseyRequestContext
java.lang.Object
java.lang.Record
io.confluent.kafka.odyssey.OdysseyFlowRecords.OdysseyRequestContext
- Enclosing class:
OdysseyFlowRecords
public static record OdysseyFlowRecords.OdysseyRequestContext(org.apache.kafka.common.message.CreateTopicsRequestData request, String namespace, io.confluent.kafka.schemaregistry.client.SchemaRegistryClient srClient, Function<org.apache.kafka.common.message.CreateTopicsRequestData, CompletableFuture<org.apache.kafka.common.message.CreateTopicsResponseData>> kafkaTopicCreator)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionOdysseyRequestContext(org.apache.kafka.common.message.CreateTopicsRequestData request, String namespace, io.confluent.kafka.schemaregistry.client.SchemaRegistryClient srClient, Function<org.apache.kafka.common.message.CreateTopicsRequestData, CompletableFuture<org.apache.kafka.common.message.CreateTopicsResponseData>> kafkaTopicCreator) 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.booleanFunction<org.apache.kafka.common.message.CreateTopicsRequestData, CompletableFuture<org.apache.kafka.common.message.CreateTopicsResponseData>> Returns the value of thekafkaTopicCreatorrecord component.Returns the value of thenamespacerecord component.org.apache.kafka.common.message.CreateTopicsRequestDatarequest()Returns the value of therequestrecord component.io.confluent.kafka.schemaregistry.client.SchemaRegistryClientsrClient()Returns the value of thesrClientrecord 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, io.confluent.kafka.schemaregistry.client.SchemaRegistryClient srClient, Function<org.apache.kafka.common.message.CreateTopicsRequestData, CompletableFuture<org.apache.kafka.common.message.CreateTopicsResponseData>> kafkaTopicCreator) Creates an instance of aOdysseyRequestContextrecord class.- Parameters:
request- the value for therequestrecord componentnamespace- the value for thenamespacerecord componentsrClient- the value for thesrClientrecord componentkafkaTopicCreator- the value for thekafkaTopicCreatorrecord 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
-
srClient
public io.confluent.kafka.schemaregistry.client.SchemaRegistryClient srClient()Returns the value of thesrClientrecord component.- Returns:
- the value of the
srClientrecord component
-
kafkaTopicCreator
public Function<org.apache.kafka.common.message.CreateTopicsRequestData, CompletableFuture<org.apache.kafka.common.message.CreateTopicsResponseData>> kafkaTopicCreator()Returns the value of thekafkaTopicCreatorrecord component.- Returns:
- the value of the
kafkaTopicCreatorrecord component
-