Interface Connection.Builder
- Enclosing interface:
- Connection
public static interface Connection.Builder
Builder interface for creating immutable
Connection instances.-
Method Summary
Modifier and TypeMethodDescriptionSets the authentication token associated with the connection.build()Builds theConnectioninstance.destinationIp(String destinationIp) Sets the destination IP address of the connection.destinationPort(Integer destinationPort) Sets the destination port number of the connection.mediaReceiverIp(String mediaReceiverIp) Sets the MFE IP address of the connection.mediaReceiverPort(Integer mediaReceiverPort) Sets the MFE port number of the connection.mediaSourceIp(String mediaSourceIp) Sets the media source IP address of the connection.mediaSourcePort(Integer mediaSourcePort) Sets the media source port number of the connection.Sets the URL associated with the connection.
-
Method Details
-
mediaSourceIp
Sets the media source IP address of the connection.- Parameters:
mediaSourceIp- the media source IP address.- Returns:
- this Builder instance.
-
mediaSourcePort
Sets the media source port number of the connection.- Parameters:
mediaSourcePort- the media source port number.- Returns:
- this Builder instance.
-
mediaReceiverIp
Sets the MFE IP address of the connection.- Parameters:
mediaReceiverIp- the MFE IP address.- Returns:
- this Builder instance.
-
mediaReceiverPort
Sets the MFE port number of the connection.- Parameters:
mediaReceiverPort- the MFE port number.- Returns:
- this Builder instance.
-
destinationIp
Sets the destination IP address of the connection.- Parameters:
destinationIp- the destination IP address.- Returns:
- this Builder instance.
-
destinationPort
Sets the destination port number of the connection.- Parameters:
destinationPort- the destination port number.- Returns:
- this Builder instance.
-
url
Sets the URL associated with the connection.- Parameters:
url- the URL.- Returns:
- this Builder instance.
-
authToken
Sets the authentication token associated with the connection.- Parameters:
authToken- the authentication token.- Returns:
- this Builder instance.
-
build
Connection build()Builds theConnectioninstance.- Returns:
- an immutable
Connectioninstance.
-