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.
Provides high-level packet handling using the Packet object model. This
handler works with parsed packet representations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface PacketHandler
PacketHandler.OfPacket<U>, PacketHandler.OfPacketConsumer -
Method Summary
Modifier and TypeMethodDescriptionvoidhandlePacket(U user, com.slytechs.sdk.protocol.core.Packet packet) Handles a parsed packet object.
-
Method Details
-
handlePacket
Handles a parsed packet object.- Parameters:
user- User-defined data passed through the handlerpacket- The parsed packet object
-