public static interface ServiceTopicDetails.Builder extends TopicDetails.Builder<ServiceTopicDetails.Builder,ServiceTopicDetails>
Modifier and Type | Method and Description |
---|---|
ServiceTopicDetails.Builder |
handler(String handlerClass)
Sets the name of a ServiceHandler class to handle service requests at
the server.
|
ServiceTopicDetails.Builder |
requestTimeout(long timeout)
Sets the request timeout.
|
ServiceTopicDetails.Builder |
serviceType(String serviceType)
Sets the service type.
|
build, property, reference, reset, tidyOnUnsubscribe
ServiceTopicDetails.Builder serviceType(String serviceType) throws IllegalArgumentException
This type is the way in which the service is identified to the client so that the client is able to understand the type of service it is interacting with.
If no service type is explicitly specified, it will be assumed to be a zero length String.
serviceType
- the service typeIllegalArgumentException
- if serviceType
is nullServiceTopicDetails.Builder handler(String handlerClass) throws IllegalArgumentException
If this is not specified, service requests will be delegated to a client (not currently supported).
handlerClass
- the service handler class name. Specifying a zero
length string effectively removes any previously specified
handlerIllegalArgumentException
- if handlerClass
is nullServiceTopicDetails.Builder requestTimeout(long timeout) throws IllegalArgumentException
This is the period of time allowed after a service request is received by the server for the request to complete (a response returned to the server for forwarding to the requesting client). If this period expires before a response is returned, the request is abandoned and a timeout notification sent to the requesting client. Any response that is returned to the server after the timeout period is discarded.
If this is not explicitly specified, 5 seconds (5000) is assumed.
timeout
- request timeout in millisecondsIllegalArgumentException
- if an invalid timeout
value
is specifiedCopyright © 2016 Push Technology Ltd. All Rights Reserved.