public static class

WsmpSendData.Builder

extends Object
java.lang.Object
   ↳ com.commsignia.v2x.client.model.WsmpSendData.Builder

Class Overview

Utility class for building WsmpSendData instances.

Summary

Public Constructors
WsmpSendData.Builder()
Create a new builder instance.
Public Methods
WsmpSendData build()
Construct a valid WsmpSendData object.
WsmpSendData.Builder withData(byte[] data)
Sets the payload data.
WsmpSendData.Builder withDatarateKbps(long datarateKbps)
Send the packet with the specified data rate in Kbps.
WsmpSendData.Builder withInterfaceID(long interfaceID)
Send the packet using the specified interface ID.
WsmpSendData.Builder withLLAddress(String llAddress)
Send the packet to the specified LL address.
WsmpSendData.Builder withPortNumber(long portNumber)
Send the packet to the specified port number.
WsmpSendData.Builder withSecurity(WsmpSendSecurity security)
Specifies the security to be used for this message.
WsmpSendData.Builder withTxPowerDbm(long txPowerDbm)
Send the packet with the specified TX power value in dBm.
WsmpSendData.Builder withUserPriority(long userPriority)
Send the packet with the specified user priority.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public WsmpSendData.Builder ()

Create a new builder instance.

Public Methods

public WsmpSendData build ()

Construct a valid WsmpSendData object.

Returns
  • valid WsmpSendData object
Throws
IllegalStateException when the specified parameters are incorrect

public WsmpSendData.Builder withData (byte[] data)

Sets the payload data.

Parameters
data payload data
Returns
  • the same builder instance this method was invoked on

public WsmpSendData.Builder withDatarateKbps (long datarateKbps)

Send the packet with the specified data rate in Kbps.

Parameters
datarateKbps data rate in Kbps
Returns
  • the same builder instance this method was invoked on

public WsmpSendData.Builder withInterfaceID (long interfaceID)

Send the packet using the specified interface ID.

Parameters
interfaceID interface ID
Returns
  • the same builder instance this method was invoked on

public WsmpSendData.Builder withLLAddress (String llAddress)

Send the packet to the specified LL address.

Parameters
llAddress LL address
Returns
  • the same builder instance this method was invoked on

public WsmpSendData.Builder withPortNumber (long portNumber)

Send the packet to the specified port number.

Parameters
portNumber port number
Returns
  • the same builder instance this method was invoked on

public WsmpSendData.Builder withSecurity (WsmpSendSecurity security)

Specifies the security to be used for this message.

Parameters
security security type
Returns
  • the same builder instance this method was invoked on

public WsmpSendData.Builder withTxPowerDbm (long txPowerDbm)

Send the packet with the specified TX power value in dBm.

Parameters
txPowerDbm TX power value in dBm
Returns
  • the same builder instance this method was invoked on

public WsmpSendData.Builder withUserPriority (long userPriority)

Send the packet with the specified user priority.

Parameters
userPriority user priority
Returns
  • the same builder instance this method was invoked on