Class ChunkedPacketListener

    • Constructor Detail

      • ChunkedPacketListener

        public ChunkedPacketListener()
    • Method Detail

      • handle

        public void handle​(INetworkChannel channel,
                           IPacket packet)
                    throws java.lang.Exception
        Description copied from interface: IPacketListener
        Handles a new incoming packet message. The channel and the packet will not null
        Specified by:
        handle in interface IPacketListener
        Parameters:
        channel - the channel, from that the message was received
        packet - the received packet message, which should handle from the listener
        Throws:
        java.lang.Exception - catch the exception, if the handle throws one
      • getSessions

        @NotNull
        public @NotNull java.util.Map<java.util.UUID,​ChunkedPacketSession> getSessions()
      • createSession

        @NotNull
        protected @NotNull ChunkedPacketSession createSession​(@NotNull
                                                              @NotNull INetworkChannel channel,
                                                              @NotNull
                                                              @NotNull java.util.UUID sessionUniqueId,
                                                              @NotNull
                                                              @NotNull java.util.Map<java.lang.String,​java.lang.Object> properties)
                                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • createOutputStream

        @NotNull
        protected abstract @NotNull java.io.OutputStream createOutputStream​(@NotNull
                                                                            @NotNull java.util.UUID sessionUniqueId,
                                                                            @NotNull
                                                                            @NotNull java.util.Map<java.lang.String,​java.lang.Object> properties)
                                                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • handleComplete

        protected void handleComplete​(@NotNull
                                      @NotNull ChunkedPacketSession session)
                               throws java.io.IOException
        Throws:
        java.io.IOException