Interface PacketFactory<T extends Packet>
- Type Parameters:
T- the packet type
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Factory for constructing
Packets.-
Method Summary
-
Method Details
-
construct
Constructs a newPacket.- Parameters:
buf- the input buffer- Returns:
- a new packet from the input
-