Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Minor changes to the TopicDescription interface will be made to allow clients to access the topic ID of topics found in metadata responses.

/**

...

*

...

Create

...

an

...

instance

...

with

...

the

...

specified

...

parameters.

...

*

...

*

...

@param

...

name

...

The

...

topic

...

name

...

*

...

@param

...

internal

...

Whether

...

the

...

topic

...

is

...

internal

...

to

...

Kafka

...

*

...

@param

...

partitions

...

A

...

list

...

of

...

partitions

...

where

...

the

...

index

...

represents

...

the

...

partition

...

id

...

and

...

the

...

element

...

contains

...

*                   leadership and replica information for that partition.
* @param authorizedOperations authorized operations for this topic, or null if this is not known.
* @param topicId Unique value that identifies the topic
*
*/
public TopicDescription(String name, boolean internal, List<TopicPartitionInfo> partitions,
    Set<AclOperation> authorizedOperations, UUID topicId)


/**

...

*

...

A

...

unique

...

identifier

...

for

...

the

...

topic.

...

*/
public

...

UUID

...

topicId()

UUID

A new UUID class will be exposed under /org/apache/kafka/common

...