Package org.apache.pekko.io
Class UdpConnected.Connect
java.lang.Object
org.apache.pekko.io.UdpConnected.Connect
- All Implemented Interfaces:
Serializable,org.apache.pekko.io.SelectionHandler.HasFailureMessage,UdpConnected.Command,UdpConnected.Message,scala.Equals,scala.Product
- Enclosing class:
- UdpConnected
public static final class UdpConnected.Connect
extends Object
implements UdpConnected.Command, scala.Product, Serializable
Send this message to the
UdpExt.manager() in order to bind to a local
port (optionally with the chosen localAddress) and create a UDP socket
which is restricted to sending to and receiving from the given remoteAddress.
All received datagrams will be sent to the designated handler actor.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConnect(ActorRef handler, InetSocketAddress remoteAddress, scala.Option<InetSocketAddress> localAddress, scala.collection.immutable.Iterable<Inet.SocketOption> options) -
Method Summary
Modifier and TypeMethodDescriptionbooleancopy(ActorRef handler, InetSocketAddress remoteAddress, scala.Option<InetSocketAddress> localAddress, scala.collection.immutable.Iterable<Inet.SocketOption> options) scala.Option<InetSocketAddress>scala.collection.immutable.Iterable<Inet.SocketOption>booleanhandler()inthashCode()scala.Option<InetSocketAddress>scala.collection.immutable.Iterable<Inet.SocketOption>options()intproductElement(int x$1) productElementName(int x$1) scala.collection.Iterator<Object>toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface scala.Product
productElementNamesMethods inherited from interface org.apache.pekko.io.UdpConnected.Command
failureMessage
-
Constructor Details
-
Connect
public Connect(ActorRef handler, InetSocketAddress remoteAddress, scala.Option<InetSocketAddress> localAddress, scala.collection.immutable.Iterable<Inet.SocketOption> options)
-
-
Method Details
-
handler
-
remoteAddress
-
localAddress
-
options
-
copy
public UdpConnected.Connect copy(ActorRef handler, InetSocketAddress remoteAddress, scala.Option<InetSocketAddress> localAddress, scala.collection.immutable.Iterable<Inet.SocketOption> options) -
copy$default$1
-
copy$default$2
-
copy$default$3
-
copy$default$4
-
productPrefix
- Specified by:
productPrefixin interfacescala.Product
-
productArity
public int productArity()- Specified by:
productArityin interfacescala.Product
-
productElement
- Specified by:
productElementin interfacescala.Product
-
productIterator
- Specified by:
productIteratorin interfacescala.Product
-
canEqual
- Specified by:
canEqualin interfacescala.Equals
-
productElementName
- Specified by:
productElementNamein interfacescala.Product
-
hashCode
public int hashCode() -
toString
-
equals
-