akka.io

UdpMessage

object UdpMessage

Java API: factory methods for the message types used when communicating with the Udp service.

Source
Udp.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. UdpMessage
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def bind(handler: ActorRef, endpoint: InetSocketAddress): Command

    Bind without specifying options.

  8. def bind(handler: ActorRef, endpoint: InetSocketAddress, options: Iterable[SocketOption]): Command

    Send this message to the UdpExt#manager in order to bind to the given local port (or an automatically assigned one if the port number is zero).

    Send this message to the UdpExt#manager in order to bind to the given local port (or an automatically assigned one if the port number is zero). The listener actor for the newly bound port will reply with a Udp.Bound message, or the manager will reply with a Udp.CommandFailed message.

  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  17. def noAck: NoAck

    Default Udp.NoAck instance which is used when no acknowledgment information is explicitly provided.

    Default Udp.NoAck instance which is used when no acknowledgment information is explicitly provided. Its “token” is null.

  18. def noAck(token: AnyRef): NoAck

    Each Udp.Send can optionally request a positive acknowledgment to be sent to the commanding actor.

    Each Udp.Send can optionally request a positive acknowledgment to be sent to the commanding actor. If such notification is not desired the Udp.Send#ack must be set to an instance of this class. The token contained within can be used to recognize which write failed when receiving a Udp.CommandFailed message.

  19. final def notify(): Unit

    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  21. def resumeReading: Command

    This message must be sent to the listener actor to re-enable reading from the socket after a Udp.SuspendReading command.

  22. def send(payload: ByteString, target: InetSocketAddress): Command

    The same as send(payload, target, noAck()).

  23. def send(payload: ByteString, target: InetSocketAddress, ack: Event): Command

    This message is understood by the “simple sender” which can be obtained by sending the Udp.SimpleSender query to the UdpExt#manager as well as by the listener actors which are created in response to Udp.Bind.

    This message is understood by the “simple sender” which can be obtained by sending the Udp.SimpleSender query to the UdpExt#manager as well as by the listener actors which are created in response to Udp.Bind. It will send the given payload data as one UDP datagram to the given target address. The UDP actor will respond with Udp.CommandFailed if the send could not be enqueued to the O/S kernel because the send buffer was full. If the given ack is not of type Udp.NoAck the UDP actor will reply with the given object as soon as the datagram has been successfully enqueued to the O/S kernel.

    The sending UDP socket’s address belongs to the “simple sender” which does not handle inbound datagrams and sends from an ephemeral port; therefore sending using this mechanism is not suitable if replies are expected, use Udp.Bind in that case.

  24. def simpleSender: Command

    Retrieve a simple sender without specifying options.

  25. def simpleSender(options: Iterable[SocketOption]): Command

    Retrieve a reference to a “simple sender” actor of the UDP extension.

    Retrieve a reference to a “simple sender” actor of the UDP extension. The newly created “simple sender” will reply with the Udp.SimpleSenderReady notification.

    The “simple sender” is a convenient service for being able to send datagrams when the originating address is meaningless, i.e. when no reply is expected.

    The “simple sender” will not stop itself, you will have to send it a akka.actor.PoisonPill when you want to close the socket.

  26. def suspendReading: Command

    Send this message to a listener actor (which sent a Udp.Bound message) to have it stop reading datagrams from the network.

    Send this message to a listener actor (which sent a Udp.Bound message) to have it stop reading datagrams from the network. If the O/S kernel’s receive buffer runs full then subsequent datagrams will be silently discarded. Re-enable reading from the socket using the Udp.ResumeReading command.

  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  28. def toString(): String

    Definition Classes
    AnyRef → Any
  29. def unbind: Command

    Send this message to the listener actor that previously sent a Udp.Bound message in order to close the listening socket.

    Send this message to the listener actor that previously sent a Udp.Bound message in order to close the listening socket. The recipient will reply with an Udp.Unbound message.

  30. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped