@Service public abstract static class DXEndpoint.Builder extends Object
DXEndpoint
that supports additional configuration properties.Modifier and Type | Field and Description |
---|---|
protected DXEndpoint.Role |
role
Current role for implementations of
DXEndpoint.Builder . |
Modifier | Constructor and Description |
---|---|
protected |
Builder()
Protected constructor for implementations of
DXEndpoint.Builder . |
Modifier and Type | Method and Description |
---|---|
abstract DXEndpoint |
build()
Builds
DXEndpoint instance. |
abstract boolean |
supportsProperty(String key)
Returns true if the corresponding property key is supported.
|
DXEndpoint.Builder |
withName(String name)
Changes name that is used to distinguish multiple endpoints
in the same JVM in logs and in other diagnostic means.
|
DXEndpoint.Builder |
withProperties(Properties props)
Sets all supported properties from the provided properties object.
|
abstract DXEndpoint.Builder |
withProperty(String key,
String value)
Sets the specified property.
|
DXEndpoint.Builder |
withRole(DXEndpoint.Role role)
Sets role for the created
DXEndpoint . |
protected DXEndpoint.Role role
DXEndpoint.Builder
.protected Builder()
DXEndpoint.Builder
.public final DXEndpoint.Builder withName(String name)
withProperty
(NAME_PROPERTY
,name
)public DXEndpoint.Builder withRole(DXEndpoint.Role role)
DXEndpoint
.
Default role is FEED
.this
endpoint builder.public abstract DXEndpoint.Builder withProperty(String key, String value)
this
endpoint builder.supportsProperty(String)
public DXEndpoint.Builder withProperties(Properties props)
this
endpoint builder.withProperty(String, String)
public abstract boolean supportsProperty(String key)
withProperty(String, String)
public abstract DXEndpoint build()
DXEndpoint
instance.Copyright © 2002–2023 Devexperts LLC. All rights reserved.