public final class UdpChannel
extends java.lang.Object
AeronUri.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ENDPOINT_KEY |
static java.lang.String |
GROUP_KEY |
static java.lang.String |
INTERFACE_KEY |
static java.lang.String |
LOCAL_KEY |
static java.lang.String |
MULTICAST_TTL_KEY |
static java.lang.String |
REMOTE_KEY |
static java.lang.String |
UDP_MEDIA_ID |
| Modifier and Type | Method and Description |
|---|---|
AeronUri |
aeronUri()
Get the
AeronUri for this channel. |
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.
|
java.lang.String |
description() |
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
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 uriStr)
Parse URI and create channel
|
java.net.ProtocolFamily |
protocolFamily() |
java.net.InetSocketAddress |
remoteControl()
Remote control address information
|
java.net.InetSocketAddress |
remoteData()
Remote data address information
|
java.lang.String |
toString() |
public static final java.lang.String UDP_MEDIA_ID
public static final java.lang.String REMOTE_KEY
public static final java.lang.String LOCAL_KEY
public static final java.lang.String INTERFACE_KEY
public static final java.lang.String GROUP_KEY
public static final java.lang.String ENDPOINT_KEY
public static final java.lang.String MULTICAST_TTL_KEY
public static UdpChannel parse(java.lang.String uriStr)
uriStr - to parsepublic java.net.InetSocketAddress remoteData()
public java.net.InetSocketAddress localData()
public java.net.InetSocketAddress remoteControl()
public java.net.InetSocketAddress localControl()
public AeronUri aeronUri()
AeronUri for this channel.AeronUri 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.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic static java.lang.String canonicalise(java.net.InetSocketAddress localData,
java.net.InetSocketAddress remoteData)
A canonical form: - begins with the string "UDP-" - has all hostnames converted to hexadecimal - has all fields expanded out - uses "-" as all field separators
The general format is: UDP-interface-localPort-remoteAddress-remotePort
localData - for the channelremoteData - for the channelpublic boolean isMulticast()
public java.net.NetworkInterface localInterface()
throws java.net.SocketException
NetworkInterface for the local interface used by the channeljava.net.SocketException - if an error occurspublic java.lang.String originalUriString()
public java.net.ProtocolFamily protocolFamily()
public java.lang.String description()
Copyright © 2014 - 2016 Real Logic Ltd. All Rights Reserved.