|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.dxfeed.api.DXEndpoint.Builder
@Service public abstract static class DXEndpoint.Builder
Builder class for DXEndpoint
that supports additional configuration properties.
Field Summary | |
---|---|
protected DXEndpoint.Role |
role
Current role for implementations of DXEndpoint.Builder . |
Constructor Summary | |
---|---|
protected |
DXEndpoint.Builder()
Protected constructor for implementations of DXEndpoint.Builder . |
Method Summary | |
---|---|
abstract DXEndpoint |
build()
Builds DXEndpoint instance. |
abstract boolean |
supportsProperty(String key)
Returns true if the corresponding property key is supported. |
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 . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected DXEndpoint.Role role
DXEndpoint.Builder
.
Constructor Detail |
---|
protected DXEndpoint.Builder()
DXEndpoint.Builder
.
Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |