Class Policies
java.lang.Object
org.apache.pulsar.common.policies.data.Policies
Definition of Pulsar policies.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionThis field has a unique usage: defines whether a namespace is allowed to access by the current cluster.final AuthPoliciesDeprecated.booleanbooleanstatic final Stringstatic final StringbooleanlonglongDeprecated.boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReplication clusters should be included in allowed clusters if allowed clusters are not empty.static booleancheckNewAllowedClusters(Policies oldNsPolicies, Set<String> newAllowedClusters) Allowed cluster should contain all clusters that are defined in replication clusters.static booleancheckNewReplicationClusters(Policies oldNsPolicies, Set<String> newReplicationClusters) Replication clusters should be included in allowed clusters.booleanGet the cluster that can delete the namespace.inthashCode()
-
Field Details
-
auth_policies
-
replication_clusters
-
allowed_clusters
This field has a unique usage: defines whether a namespace is allowed to access by the current cluster. Instead of access this field directly, please call.invalid reference
BrokerService#isCurrentClusterAllowed -
bundles
-
backlog_quota_map
-
clusterDispatchRate
Deprecated. -
topicDispatchRate
-
subscriptionDispatchRate
-
replicatorDispatchRate
-
clusterSubscribeRate
-
persistence
-
deduplicationEnabled
-
autoTopicCreationOverride
-
autoSubscriptionCreationOverride
-
publishMaxMessageRate
-
latency_stats_sample_rate
-
message_ttl_in_seconds
-
subscription_expiration_time_minutes
-
retention_policies
-
deleted
public boolean deleted -
FIRST_BOUNDARY
- See Also:
-
LAST_BOUNDARY
- See Also:
-
encryption_required
public boolean encryption_required -
delayed_delivery_policies
-
inactive_topic_policies
-
subscription_auth_mode
-
max_producers_per_topic
-
max_consumers_per_topic
-
max_consumers_per_subscription
-
max_unacked_messages_per_consumer
-
max_unacked_messages_per_subscription
-
max_subscriptions_per_topic
-
compaction_threshold
-
offload_threshold
public long offload_threshold -
offload_threshold_in_seconds
public long offload_threshold_in_seconds -
offload_deletion_lag_ms
-
max_topics_per_namespace
-
schema_auto_update_compatibility_strategy
Deprecated. -
schema_compatibility_strategy
-
is_allow_auto_update_schema
-
schema_validation_enforced
public boolean schema_validation_enforced -
offload_policies
-
deduplicationSnapshotIntervalSeconds
-
subscription_types_enabled
-
properties
-
resource_group_name
-
migrated
public boolean migrated -
dispatcherPauseOnAckStatePersistentEnabled
-
entryFilters
-
-
Constructor Details
-
Policies
public Policies()
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
getClusterThatCanDeleteNamespace
Get the cluster that can delete the namespace. -
checkNewReplicationClusters
public static boolean checkNewReplicationClusters(Policies oldNsPolicies, Set<String> newReplicationClusters) Replication clusters should be included in allowed clusters. -
checkNewAllowedClusters
public static boolean checkNewAllowedClusters(Policies oldNsPolicies, Set<String> newAllowedClusters) Allowed cluster should contain all clusters that are defined in replication clusters. -
checkAllowedAndReplicationClusters
public boolean checkAllowedAndReplicationClusters()Replication clusters should be included in allowed clusters if allowed clusters are not empty.
-