-
Notifications
You must be signed in to change notification settings - Fork 41.5k
Add support for Pulsar default tenant/namespace #41851
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
3277577
aa2df46
b288d82
d635c7c
f40986b
df8db51
e65bdf1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -250,13 +250,43 @@ public Authentication getAuthentication() { | |
|
||
public static class Defaults { | ||
|
||
/** | ||
* Default tenant to use when producing or consuming messages against a | ||
* non-fully-qualified topic URL. When not specified Pulsar uses a default tenant | ||
* of 'public'. | ||
*/ | ||
private String tenant; | ||
|
||
/** | ||
* Default namespace to use when producing or consuming messages against a | ||
* non-fully-qualified topic URL. When not specified Pulsar uses a default | ||
* namespace of 'default'. | ||
*/ | ||
private String namespace; | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As these properties both relate to topics, it would be good to put them both in a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Great suggestion as this also gives way to adding an |
||
/** | ||
* List of mappings from message type to topic name and schema info to use as a | ||
* defaults when a topic name and/or schema is not explicitly specified when | ||
* producing or consuming messages of the mapped type. | ||
*/ | ||
private List<TypeMapping> typeMappings = new ArrayList<>(); | ||
|
||
public String getTenant() { | ||
return this.tenant; | ||
} | ||
|
||
public void setTenant(String tenant) { | ||
this.tenant = tenant; | ||
} | ||
|
||
public String getNamespace() { | ||
return this.namespace; | ||
} | ||
|
||
public void setNamespace(String namespace) { | ||
this.namespace = namespace; | ||
} | ||
|
||
public List<TypeMapping> getTypeMappings() { | ||
return this.typeMappings; | ||
} | ||
|
Uh oh!
There was an error while loading. Please reload this page.