Expand description
Kafka admin client.
Corresponds to the org.apache.kafka.clients.admin package (the clients
segment is dropped per the project naming conventions). See
.claude/rules/admin-client.md for the design decisions that govern this
module.
Re-exports§
pub use alter_config_op::AlterConfigOp;pub use alter_config_op::OpType;pub use config_entry::ConfigEntry;pub use config_entry::ConfigEntryOptions;pub use config_entry::ConfigEntryOptionsBuilder;pub use create_topics_result::CreateTopicsResult;pub use create_topics_result::TopicMetadataAndConfig;pub use delete_acls_result::DeleteAclsResult;pub use delete_acls_result::FilterResult;pub use delete_acls_result::FilterResults;pub use describe_producers_result::DescribeProducersResult;pub use describe_producers_result::PartitionProducerState;pub use describe_replica_log_dirs_result::DescribeReplicaLogDirsResult;pub use describe_replica_log_dirs_result::ReplicaLogDirInfo;pub use feature_update::FeatureUpdate;pub use feature_update::UpgradeType;pub use list_offsets_result::ListOffsetsResult;pub use list_offsets_result::ListOffsetsResultInfo;pub use options::AbortTransactionOptions;pub use options::AlterClientQuotasOptions;pub use options::AlterConfigsOptions;pub use options::AlterConsumerGroupOffsetsOptions;pub use options::AlterPartitionReassignmentsOptions;pub use options::AlterReplicaLogDirsOptions;pub use options::AlterUserScramCredentialsOptions;pub use options::CreateAclsOptions;pub use options::CreateDelegationTokenOptions;pub use options::CreatePartitionsOptions;pub use options::CreateTopicsOptions;pub use options::DeleteAclsOptions;pub use options::DeleteConsumerGroupOffsetsOptions;pub use options::DeleteConsumerGroupsOptions;pub use options::DeleteRecordsOptions;pub use options::DeleteTopicsOptions;pub use options::DescribeAclsOptions;pub use options::DescribeClassicGroupsOptions;pub use options::DescribeClientQuotasOptions;pub use options::DescribeClusterOptions;pub use options::DescribeConfigsOptions;pub use options::DescribeConsumerGroupsOptions;pub use options::DescribeDelegationTokenOptions;pub use options::DescribeFeaturesOptions;pub use options::DescribeLogDirsOptions;pub use options::DescribeProducersOptions;pub use options::DescribeReplicaLogDirsOptions;pub use options::DescribeTopicsOptions;pub use options::DescribeTransactionsOptions;pub use options::DescribeUserScramCredentialsOptions;pub use options::ElectLeadersOptions;pub use options::ExpireDelegationTokenOptions;pub use options::FenceProducersOptions;pub use options::ListConfigResourcesOptions;pub use options::ListConsumerGroupOffsetsOptions;pub use options::ListGroupsOptions;pub use options::ListOffsetsOptions;pub use options::ListPartitionReassignmentsOptions;pub use options::ListTopicsOptions;pub use options::ListTransactionsOptions;pub use options::RemoveMembersFromConsumerGroupOptions;pub use options::RenewDelegationTokenOptions;pub use options::TerminateTransactionOptions;pub use options::UpdateFeaturesOptions;
Modules§
- alter_
config_ op - An alter configuration operation.
- config_
entry - A configuration entry containing name, value and additional metadata.
- create_
topics_ result - The result of
Admin::create_topics. - delete_
acls_ result - The result of
Admin::delete_acls. - describe_
producers_ result - The result of
Admin::describe_producers. - describe_
replica_ log_ dirs_ result - The result of
Admin::describe_replica_log_dirs. - feature_
update - Details about an update to a finalized feature.
- list_
offsets_ result - The result of
Admin::list_offsets. - options
- Options classes for admin operations.
Structs§
- Abort
Transaction Result - The result of
Admin::abort_transaction. - Abort
Transaction Spec - The identifiers required to abort a hanging transaction on a partition.
- Admin
Client Config - Configuration for the admin client.
- Alter
Client Quotas Result - The result of the
Admin::alter_client_quotascall. - Alter
Configs Result - The result of the
Admin::incremental_alter_configscall. - Alter
Consumer Group Offsets Result - The result of
Admin::alter_consumer_group_offsets. - Alter
Partition Reassignments Result - The result of
Admin::alter_partition_reassignments. - Alter
Replica LogDirs Result - The result of the
Admin::alter_replica_log_dirscall. - Alter
User Scram Credentials Result - The result of the
Admin::alter_user_scram_credentialscall. - Classic
Group Description - A detailed description of a single classic group in the cluster.
- Config
- A configuration object containing the configuration entries for a resource.
- Consumer
Group Description - A detailed description of a single consumer group in the cluster.
- Create
Acls Result - The result of the
Admin::create_aclscall. - Create
Delegation Token Result - The result of the
Admin::create_delegation_tokencall. - Create
Partitions Result - The result of
Admin::create_partitions. - Delete
Consumer Group Offsets Result - The result of
Admin::delete_consumer_group_offsets. - Delete
Consumer Groups Result - The result of the
Admin::delete_consumer_groupscall for aCollection<String>(group id) input. - Delete
Records Result - The result of
Admin::delete_records. - Deleted
Records - Represents information about deleted records.
- Describe
Acls Result - The result of the
Admin::describe_aclscall. - Describe
Classic Groups Result - The result of
Admin::describe_classic_groups. - Describe
Client Quotas Result - The result of the
Admin::describe_client_quotascall. - Describe
Cluster Result - The result of the
Admin::describe_clustercall. - Describe
Configs Result - The result of the
Admin::describe_configscall. - Describe
Consumer Groups Result - The result of
Admin::describe_consumer_groups. - Describe
Delegation Token Result - The result of the
Admin::describe_delegation_tokencall. - Describe
Features Result - The result of the
describe_features_with_optionscall. - Describe
LogDirs Result - The result of the
Admin::describe_log_dirscall. - Describe
Transactions Result - The result of
Admin::describe_transactions. - Describe
User Scram Credentials Result - The result of the
Admin::describe_user_scram_credentialscall. - Elect
Leaders Result - The result of
Admin::elect_leaders. - Expire
Delegation Token Result - The result of the
Admin::expire_delegation_tokencall. - Feature
Metadata - Encapsulates details about finalized as well as supported features.
- Fence
Producers Result - The result of
Admin::fence_producers. - Finalized
Version Range - Represents a range of version levels supported by every broker in a cluster for some feature.
- Group
Listing - A listing of a group in the cluster.
- Kafka
Admin Client - The administrative client for Kafka.
- List
Config Resources Result - The result of the
Admin::list_config_resourcescall. - List
Consumer Group Offsets Result - The result of
Admin::list_consumer_group_offsets_with_group_specs. - List
Consumer Group Offsets Spec - Specification of consumer group offsets to list using
Admin::list_consumer_group_offsets_with_group_specs. - List
Groups Result - The result of
Admin::list_groups. - List
Partition Reassignments Result - The result of
Admin::list_partition_reassignments. - List
Topics Result - The result of
Admin::list_topics. - List
Transactions Result - The result of
Admin::list_transactions. - LogDir
Description - A description of a log directory on a particular broker.
- Member
Assignment - A description of the assignments of a specific group member.
- Member
Description - A detailed description of a single group member in the cluster.
- Member
ToRemove - A struct containing information about the member to be removed.
- Mock
Admin Client - An in-memory
Adminimplementation for tests. - NewPartition
Reassignment - A new partition reassignment, which can be applied via
Admin::alter_partition_reassignments. - NewPartitions
- Describes new partitions for a particular topic in a call to
Admin::create_partitions. - NewTopic
- A new topic to be created via
Admin::create_topics. - Partition
Reassignment - A partition reassignment, which has been listed via
Admin::list_partition_reassignments. - Producer
State - The state of an active producer for a partition.
- Records
ToDelete - Describe records to delete in a call to
Admin::delete_records. - Remove
Members From Consumer Group Result - The result of
Admin::remove_members_from_consumer_group. - Renew
Delegation Token Result - The result of the
Admin::renew_delegation_tokencall. - Replica
Info - A description of a replica on a particular broker.
- Scram
Credential Info - Mechanism and iterations for a SASL/SCRAM credential associated with a user.
- Supported
Version Range - Represents a range of versions that a particular broker supports for some feature.
- Terminate
Transaction Result - The result of
Admin::force_terminate_transaction. - Topic
Description - A detailed description of a single topic in the cluster.
- Topic
Listing - A listing of a topic in the cluster.
- Transaction
Description - The description of a transaction.
- Transaction
Listing - A transaction listing.
- Update
Features Result - The result of the
update_features_with_optionscall. - User
Scram Credential Deletion - A request to delete a SASL/SCRAM credential for a user.
- User
Scram Credential Upsertion - A request to update/insert a SASL/SCRAM credential for a user.
- User
Scram Credentials Description - Representation of all SASL/SCRAM credentials associated with a user that can be retrieved.
Enums§
- Admin
Client - The base class for in-built admin clients.
- Delete
Topics Result - The result of
Admin::delete_topics. - Describe
Topics Result - The result of
Admin::describe_topics_with_topics. - Offset
Spec - Specifies the desired offsets when using
Admin::list_offsets. - Scram
Mechanism - Representation of a SASL/SCRAM Mechanism.
- Transaction
State - The state of a transaction.
- User
Scram Credential Alteration - A request to alter a user’s SASL/SCRAM credentials.
Traits§
- Admin
- The administrative client for Kafka, which supports managing and inspecting topics, brokers, configurations and records.
Type Aliases§
- Group
Offsets - A map of topic partitions to their committed offset and metadata. A
Nonevalue indicates the group has no committed offset for that partition (Java’snullvalue in the map).