pub struct JavaClientRuntimeConfig {
pub endpoints: Vec<String>,
pub tenant: String,
pub client_name: String,
pub smart_routing: bool,
pub identity: JavaClientIdentityMode,
pub topology: JavaClientTopology,
pub retry: JavaRetryBackoff,
pub deadline_ms: u64,
pub customizer_hooks_enabled: bool,
}Expand description
Java client runtime settings shared by the Boot 2/3/4 starters.
Fields§
§endpoints: Vec<String>Client endpoints.
tenant: StringTenant id carried to W4 isolation.
client_name: StringCaller-visible client name.
smart_routing: boolWhether the Java client may use server-provided routing hints.
identity: JavaClientIdentityModeIdentity source.
topology: JavaClientTopologyApplication topology mode.
retry: JavaRetryBackoffRetry/backoff policy.
deadline_ms: u64Default request deadline in milliseconds.
customizer_hooks_enabled: boolWhether customizers are allowed to mutate the transport settings.
Implementations§
Source§impl JavaClientRuntimeConfig
impl JavaClientRuntimeConfig
Sourcepub fn client_first(
endpoints: impl IntoIterator<Item = impl Into<String>>,
tenant: impl Into<String>,
client_name: impl Into<String>,
) -> Self
pub fn client_first( endpoints: impl IntoIterator<Item = impl Into<String>>, tenant: impl Into<String>, client_name: impl Into<String>, ) -> Self
Build client-first defaults.
Sourcepub fn validate(&self) -> Result<(), JavaMigrationContractError>
pub fn validate(&self) -> Result<(), JavaMigrationContractError>
Validate release-0.49 Java client defaults.
Trait Implementations§
Source§impl Clone for JavaClientRuntimeConfig
impl Clone for JavaClientRuntimeConfig
Source§fn clone(&self) -> JavaClientRuntimeConfig
fn clone(&self) -> JavaClientRuntimeConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for JavaClientRuntimeConfig
impl Debug for JavaClientRuntimeConfig
impl Eq for JavaClientRuntimeConfig
Source§impl PartialEq for JavaClientRuntimeConfig
impl PartialEq for JavaClientRuntimeConfig
Source§fn eq(&self, other: &JavaClientRuntimeConfig) -> bool
fn eq(&self, other: &JavaClientRuntimeConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for JavaClientRuntimeConfig
Auto Trait Implementations§
impl Freeze for JavaClientRuntimeConfig
impl RefUnwindSafe for JavaClientRuntimeConfig
impl Send for JavaClientRuntimeConfig
impl Sync for JavaClientRuntimeConfig
impl Unpin for JavaClientRuntimeConfig
impl UnsafeUnpin for JavaClientRuntimeConfig
impl UnwindSafe for JavaClientRuntimeConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more