Interface PacketExecutor<T extends Client<Connection<T>>>

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface PacketExecutor<T extends Client<Connection<T>>>
    This class is responsible to execute the incoming packets.
    • Method Detail

      • execute

        void execute​(ReadablePacket<T> packet)
        Executes the packet. Its highly recommended to execute long running code or blocking code in a another thread.
        Parameters:
        packet - the packet to be executed.