Class Udp.SimpleSender

java.lang.Object
org.apache.pekko.io.Udp.SimpleSender
All Implemented Interfaces:
Serializable, org.apache.pekko.io.SelectionHandler.HasFailureMessage, Udp.Command, Udp.Message, scala.Equals, scala.Product
Direct Known Subclasses:
Udp.SimpleSender$
Enclosing class:
Udp

public static class Udp.SimpleSender extends Object implements Udp.Command, scala.Product, Serializable
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 pekko.actor.PoisonPill when you want to close the socket.

See Also:
  • Constructor Details

    • SimpleSender

      public SimpleSender(scala.collection.immutable.Iterable<Inet.SocketOption> options)
  • Method Details

    • options

      public scala.collection.immutable.Iterable<Inet.SocketOption> options()
    • copy

      public Udp.SimpleSender copy(scala.collection.immutable.Iterable<Inet.SocketOption> options)
    • copy$default$1

      public scala.collection.immutable.Iterable<Inet.SocketOption> copy$default$1()
    • productPrefix

      public String productPrefix()
      Specified by:
      productPrefix in interface scala.Product
    • productArity

      public int productArity()
      Specified by:
      productArity in interface scala.Product
    • productElement

      public Object productElement(int x$1)
      Specified by:
      productElement in interface scala.Product
    • productIterator

      public scala.collection.Iterator<Object> productIterator()
      Specified by:
      productIterator in interface scala.Product
    • canEqual

      public boolean canEqual(Object x$1)
      Specified by:
      canEqual in interface scala.Equals
    • productElementName

      public String productElementName(int x$1)
      Specified by:
      productElementName in interface scala.Product
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object x$1)
      Specified by:
      equals in interface scala.Equals
      Overrides:
      equals in class Object