public static final class PublishData.Builder extends Object
PublishData
objects.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
PublishData |
build()
Build
PublishData given the current requests made on the
builder. |
PublishData.Builder |
setRxFilter(byte[] rxFilter,
int rxFilterLength)
The transmit filter for a passive publish session
PublishSettings.Builder.setPublishType(int) and
PublishSettings.PUBLISH_TYPE_SOLICITED . |
PublishData.Builder |
setServiceName(String serviceName)
Specify the service name of the publish session.
|
PublishData.Builder |
setServiceSpecificInfo(byte[] serviceSpecificInfo,
int serviceSpecificInfoLength)
Specify service specific information for the publish session.
|
PublishData.Builder |
setServiceSpecificInfo(String serviceSpecificInfoStr)
Specify service specific information for the publish session - same
as
setServiceSpecificInfo(byte[], int)
but obtaining the data from a String. |
PublishData.Builder |
setTxFilter(byte[] txFilter,
int txFilterLength)
The transmit filter for an active publish session
PublishSettings.Builder.setPublishType(int) and
PublishSettings.PUBLISH_TYPE_UNSOLICITED . |
public PublishData.Builder setServiceName(String serviceName)
serviceName
- The service name for the publish session.builder.setXXX(..).setXXX(..)
.public PublishData.Builder setServiceSpecificInfo(byte[] serviceSpecificInfo, int serviceSpecificInfoLength)
serviceSpecificInfo
- A byte-array for the service-specific
information field.serviceSpecificInfoLength
- The length of the byte-array to be
used.builder.setXXX(..).setXXX(..)
.public PublishData.Builder setServiceSpecificInfo(String serviceSpecificInfoStr)
setServiceSpecificInfo(byte[], int)
but obtaining the data from a String.serviceSpecificInfoStr
- The service specific information string
to be included (as a byte array) in the publish
information.builder.setXXX(..).setXXX(..)
.public PublishData.Builder setTxFilter(byte[] txFilter, int txFilterLength)
PublishSettings.Builder.setPublishType(int)
and
PublishSettings.PUBLISH_TYPE_UNSOLICITED
. Included in
transmitted publish packets and used by receivers (subscribers) to
determine whether they match - in addition to just relying on the
service name.
Format is an LV byte array - the TlvBufferUtils
utility class
is available to form and parse.
txFilter
- The byte-array containing the LV formatted transmit
filter.txFilterLength
- The number of bytes in the transmit filter
argument.builder.setXXX(..).setXXX(..)
.public PublishData.Builder setRxFilter(byte[] rxFilter, int rxFilterLength)
PublishSettings.Builder.setPublishType(int)
and
PublishSettings.PUBLISH_TYPE_SOLICITED
. Used by the publisher
to determine whether they match transmitted subscriber packets
(active subscribers) - in addition to just relying on the service
name.
Format is an LV byte array - the TlvBufferUtils
utility class
is available to form and parse.
rxFilter
- The byte-array containing the LV formatted receive
filter.rxFilterLength
- The number of bytes in the receive filter
argument.builder.setXXX(..).setXXX(..)
.public PublishData build()
PublishData
given the current requests made on the
builder.