Class ReverseInboundServerImpl

java.lang.Object
se.laz.casual.network.inbound.reverse.ReverseInboundServerImpl
All Implemented Interfaces:
se.laz.casual.network.reverse.inbound.ReverseInboundServer

public class ReverseInboundServerImpl extends Object implements se.laz.casual.network.reverse.inbound.ReverseInboundServer
Inbound "server" that connects and then acts exactly like CasualServer In fact it is in actuality a client but after connect it behaves as if the connection was initiated from the other side. Note that we connect and then casual issues the domain connect request after which we act as if we were inbound all along.
  • Method Details

    • of

      public static se.laz.casual.network.reverse.inbound.ReverseInboundServer of(ReverseInboundConnectionInformation reverseInboundConnectionInformation, se.laz.casual.network.reverse.inbound.ReverseInboundListener eventListener, Supplier<jakarta.resource.spi.work.WorkManager> workManagerSupplier)
    • getAddress

      public InetSocketAddress getAddress()
      Specified by:
      getAddress in interface se.laz.casual.network.reverse.inbound.ReverseInboundServer
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object