Interface PacketHandler.OfPacket<U>

Type Parameters:
U - The type of user-defined data to be passed through the handler
All Superinterfaces:
PacketHandler
Enclosing interface:
PacketHandler
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 static interface PacketHandler.OfPacket<U> extends PacketHandler
Provides high-level packet handling using the Packet object model. This handler works with parsed packet representations.
  • Method Details

    • handlePacket

      void handlePacket(U user, com.slytechs.sdk.protocol.core.Packet packet)
      Handles a parsed packet object.
      Parameters:
      user - User-defined data passed through the handler
      packet - The parsed packet object