Interface IPacketSender

    • Method Detail

      • sendPacket

        void sendPacket​(@NotNull
                        @NotNull IPacket packet)
        Transport a packet instance into the network to the receiver. The receiver will handle the packet if he knows the channel and has listeners for the channel

        The packet are doesn't allow to be null

        Parameters:
        packet - the packet, which should transport into the network
      • sendPacketSync

        void sendPacketSync​(@NotNull
                            @NotNull IPacket packet)
        Transport packet instances into the network to the receiver synchronously. The receiver will handle the packets if he knows the channel and has listeners for the channel

        A packet are doesn't allow to be null All elements should be checked that be not null and send after that

        Parameters:
        packet - the packets, which should transport into the network
      • sendPacket

        default void sendPacket​(@NotNull
                                @NotNull IPacket... packets)
        Transport packet instances into the network to the receiver. The receiver will handle the packets if he knows the channel and has listeners for the channel

        A packet are doesn't allow to be null All elements should be checked that be not null and send after that

        Parameters:
        packets - the packets, which should transport into the network
      • sendPacketSync

        default void sendPacketSync​(@NotNull
                                    @NotNull IPacket... packets)
        Transport packet instances into the network to the receiver synchronously. The receiver will handle the packets if he knows the channel and has listeners for the channel

        A packet are doesn't allow to be null All elements should be checked that be not null and send after that

        Parameters:
        packets - the packets, which should transport into the network