public enum TopicAddFailReason extends Enum<TopicAddFailReason>
Enum Constant and Description |
---|
CLUSTER_REPARTITION
Adding the topic failed because the cluster was repartitioning due to a
server starting, stopping, or failing.
|
EXCEEDED_LICENSE_LIMIT
Adding the topic failed because of a licence limit.
|
EXISTS
A topic already exists with exactly the same specification.
|
EXISTS_INCOMPATIBLE
Adding the topic failed because a topic is already bound to the specified
path but the caller does not have the rights to manage it.
|
EXISTS_MISMATCH
A topic already exists with the same path but a different specification.
|
INVALID_DETAILS
Some aspect of the topic specification failed validation.
|
INVALID_NAME
The supplied topic path is invalid.
|
PERMISSIONS_FAILURE
The client was denied permission to add a topic of the specified type at
the given point in the topic hierarchy.
|
UNEXPECTED_ERROR
An unexpected error occurred whilst attempting to create the topic.
|
Modifier and Type | Method and Description |
---|---|
static TopicAddFailReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TopicAddFailReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TopicAddFailReason EXISTS
public static final TopicAddFailReason EXISTS_MISMATCH
public static final TopicAddFailReason INVALID_NAME
public static final TopicAddFailReason INVALID_DETAILS
public static final TopicAddFailReason PERMISSIONS_FAILURE
public static final TopicAddFailReason UNEXPECTED_ERROR
public static final TopicAddFailReason CLUSTER_REPARTITION
public static final TopicAddFailReason EXCEEDED_LICENSE_LIMIT
public static final TopicAddFailReason EXISTS_INCOMPATIBLE
This can be because the topic is being managed by a component with exclusive control over the topic, such as fan-out and thus the caller will not be able to update or remove the topic.
If the caller has suitable permissions then it could still subscribe to the topic, but the topic's specification may be different from that requested.
public static TopicAddFailReason[] values()
for (TopicAddFailReason c : TopicAddFailReason.values()) System.out.println(c);
public static TopicAddFailReason valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2024 DiffusionData Ltd. All Rights Reserved.