public final class UdpChannel
extends java.lang.Object
AeronUri.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONTROL_KEY |
static java.lang.String |
ENDPOINT_KEY |
static java.lang.String |
INTERFACE_KEY |
static java.lang.String |
MULTICAST_TTL_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
canonicalise(java.net.InetSocketAddress, java.net.InetSocketAddress) |
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() |
static java.net.InetSocketAddress |
destinationAddress(AeronUri uri)
Get the endpoint address from the URI.
|
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 |
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()
Get the
ProtocolFamily for this channel. |
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 INTERFACE_KEY
public static final java.lang.String ENDPOINT_KEY
public static final java.lang.String MULTICAST_TTL_KEY
public static final java.lang.String CONTROL_KEY
public static UdpChannel parse(java.lang.String uriStr)
uriStr - to parsepublic static java.lang.String canonicalise(java.net.InetSocketAddress localData,
java.net.InetSocketAddress remoteData)
localData - for the channelremoteData - for the channelpublic 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 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()
ProtocolFamily for this channel.ProtocolFamily for this channel.public boolean hasExplicitControl()
public static java.net.InetSocketAddress destinationAddress(AeronUri uri)
uri - to checkpublic java.lang.String description()
Copyright © 2014 - 2016 Real Logic Ltd. All Rights Reserved.