public final class UdpChannel
extends java.lang.Object
ChannelUri
.ChannelUri
,
ChannelUriStringBuilder
Modifier and Type | Method and Description |
---|---|
java.lang.String |
canonicalForm()
The canonical form for the channel
|
static java.lang.String |
canonicalise(java.net.InetSocketAddress localData,
java.net.InetSocketAddress remoteData)
Return a string which is a canonical form of the channel suitable for use as a file or directory
name and also as a method of hashing, etc.
|
ChannelUri |
channelUri()
Get the
ChannelUri for this channel. |
java.lang.String |
description()
Used for debugging to get a human readable description of the channel.
|
static java.net.InetSocketAddress |
destinationAddress(ChannelUri uri)
Get the endpoint address from the URI.
|
boolean |
doesTagMatch(UdpChannel udpChannel) |
boolean |
equals(java.lang.Object o) |
boolean |
hasExplicitControl()
Does the channel have an explicit control address as used with multi-destination-cast or not?
|
int |
hashCode() |
boolean |
hasTag() |
boolean |
isMulticast()
Does channel represent a multicast or not
|
java.net.InetSocketAddress |
localControl()
Local control address information
|
java.net.InetSocketAddress |
localData()
Local data address information
|
java.net.NetworkInterface |
localInterface()
Local interface to be used by the channel.
|
int |
multicastTtl()
Multicast TTL information
|
java.lang.String |
originalUriString()
Original URI of the channel URI.
|
static UdpChannel |
parse(java.lang.String channelUriString)
Parse channel URI and create a
UdpChannel . |
java.net.ProtocolFamily |
protocolFamily()
Get the
ProtocolFamily for this channel. |
java.net.InetSocketAddress |
remoteControl()
Remote control address information
|
java.net.InetSocketAddress |
remoteData()
Remote data address information
|
long |
tag() |
java.lang.String |
toString() |
public static UdpChannel parse(java.lang.String channelUriString)
UdpChannel
.channelUriString
- to parseUdpChannel
InvalidChannelException
- if an error occurs.public static java.lang.String canonicalise(java.net.InetSocketAddress localData, java.net.InetSocketAddress remoteData)
A canonical form:
The general format is: UDP-interface-localPort-remoteAddress-remotePort
localData
- address/interface for the channelremoteData
- address for the channelpublic java.net.InetSocketAddress remoteData()
public java.net.InetSocketAddress localData()
public java.net.InetSocketAddress remoteControl()
public java.net.InetSocketAddress localControl()
public ChannelUri channelUri()
ChannelUri
for this channel.ChannelUri
for this channel.public int multicastTtl()
public java.lang.String canonicalForm()
canonicalise(java.net.InetSocketAddress, java.net.InetSocketAddress)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isMulticast()
public java.net.NetworkInterface localInterface()
NetworkInterface
for the local interface used by the channelpublic java.lang.String originalUriString()
public java.net.ProtocolFamily protocolFamily()
ProtocolFamily
for this channel.ProtocolFamily
for this channel.public long tag()
public boolean hasExplicitControl()
public boolean hasTag()
public boolean doesTagMatch(UdpChannel udpChannel)
public static java.net.InetSocketAddress destinationAddress(ChannelUri uri)
uri
- to checkpublic java.lang.String description()
Copyright © 2014-2018 Real Logic Ltd. All Rights Reserved.