public static class AxonServerConnectionManager.Builder extends Object
AxonServerConnectionManager
.
The TagsConfiguration
is defaulted to TagsConfiguration()
. The AxonServerConfiguration
is a hard requirements and as such should be provided.
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
AxonServerConnectionManager.Builder |
axonFrameworkVersionResolver(Supplier<String> axonFrameworkVersionResolver)
Deprecated.
Not ued anymore
|
AxonServerConnectionManager.Builder |
axonServerConfiguration(AxonServerConfiguration axonServerConfiguration)
Sets the
AxonServerConfiguration used to correctly configure connections between Axon clients and
Axon Server. |
AxonServerConnectionManager |
build()
Initializes a
AxonServerConnectionManager as specified through this Builder. |
AxonServerConnectionManager.Builder |
channelCustomizer(UnaryOperator<io.grpc.ManagedChannelBuilder<?>> channelCustomization)
Registers the given
channelCustomization , which configures the underling ManagedChannelBuilder used to set up connections to AxonServer. |
AxonServerConnectionManager.Builder |
tagsConfiguration(TagsConfiguration tagsConfiguration)
Sets the
TagsConfiguration used to add the tags of this Axon instance as client information when
setting up a channel. |
protected void |
validate()
Validates whether the fields contained in this Builder are set accordingly.
|
public AxonServerConnectionManager.Builder axonServerConfiguration(AxonServerConfiguration axonServerConfiguration)
AxonServerConfiguration
used to correctly configure connections between Axon clients and
Axon Server.axonServerConfiguration
- an AxonServerConfiguration
used to correctly configure the connections
created by an AxonServerConnectionManager
instancepublic AxonServerConnectionManager.Builder tagsConfiguration(TagsConfiguration tagsConfiguration)
TagsConfiguration
used to add the tags of this Axon instance as client information when
setting up a channel. Can for example be used to introduce labelling of your client applications for correct
distribution in an Axon Server cluster. Defaults to TagsConfiguration()
, thus an
empty set of tags.tagsConfiguration
- a TagsConfiguration
to add the tags of this Axon instance as client
information when setting up a channelpublic AxonServerConnectionManager.Builder channelCustomizer(UnaryOperator<io.grpc.ManagedChannelBuilder<?>> channelCustomization)
channelCustomization
, which configures the underling ManagedChannelBuilder
used to set up connections to AxonServer.
This method may be used in case none of the operations on this Builder provide support for the required feature.
channelCustomization
- A function defining the customization to make on the ManagedChannelBuilder@Deprecated public AxonServerConnectionManager.Builder axonFrameworkVersionResolver(Supplier<String> axonFrameworkVersionResolver)
axonFrameworkVersionResolver
- a string supplier that retrieve the current Axon Framework versionpublic AxonServerConnectionManager build()
AxonServerConnectionManager
as specified through this Builder.AxonServerConnectionManager
as specified through this Builderprotected void validate() throws AxonConfigurationException
AxonConfigurationException
- if one field is asserted to be incorrect according to the Builder's
specificationsCopyright © 2010–2023. All rights reserved.