public final class ServiceRegistrationOptions extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ServiceRegistrationOptions.RegistrationParts
Constants for specifying which part(s) of a service should be registered
|
static class |
ServiceRegistrationOptions.ServiceRegistrationPriority
Constants for specifying the priority of registered service.
|
| Constructor and Description |
|---|
ServiceRegistrationOptions()
Constructs a ServiceRegistrationOptions with well defined defaults for
various options.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addActiveSubServiceCodeRange(int begin,
int end,
int priority)
Advertises the service to be registered to receive, with the specified
'priority', subscriptions that the resolver has mapped to a service code
between the specified 'begin' and the specified 'end' values,
inclusive.
|
String |
getGroupId()
Returns the Group ID for the service to be registered to the specified
groupId String.
|
int |
getPartsToRegister()
Returns the parts of the service to be registered.
|
int |
getServicePriority()
Returns the value of the service priority for subscription services.
|
void |
setGroupId(String groupId)
Sets the Group ID for the service to be registered to the specified
groupId String.
|
void |
setPartsToRegister(int parts)
Sets the parts of the service to be registered to the specified
'parts', which must be a bitwise-or of the options provided in
ServiceRegistrationOptions.RegistrationParts, above. |
void |
setServicePriority(int priority)
Sets the priority with which a publishing service will be registered to
the specified 'priority'.
|
public ServiceRegistrationOptions()
groupId = null
priority = PRIORITY_HIGH
public String getGroupId()
public int getServicePriority()
public int getPartsToRegister()
ServiceRegistrationOptions.RegistrationParts, above for additional details.public void setGroupId(String groupId)
groupId.length() > MAX_GROUP_ID_SIZE (=64) only the first
MAX_GROUP_ID_SIZE chars are considered as Group Id.public void setServicePriority(int priority)
ServiceRegistrationOptions.ServiceRegistrationPriority are suitable for use here, any
non-negative 'priority' is acceptable.
Note that this does not have any effect on request-response or
resolution services.
By default, a service will be registered with priority
ServiceRegistrationOptions.ServiceRegistrationPriority.PRIORITY_HIGH.public void setPartsToRegister(int parts)
ServiceRegistrationOptions.RegistrationParts, above. This option defaults to
ServiceRegistrationOptions.RegistrationParts.PART_DEFAULT.public void addActiveSubServiceCodeRange(int begin,
int end,
int priority)
'0 <= begin <= end < (1 << 24)', and 'priority' is non-negative.Copyright © 2021 Bloomberg L.P.. All rights reserved.