Interface ResponsePacketHandler<P extends Packet,R extends Packet,C extends EngineConnection>
- 
- Type Parameters:
- P- The type of the request packet
- R- The type of the response packet
- C- The connection type
 - 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 interface ResponsePacketHandler<P extends Packet,R extends Packet,C extends EngineConnection>A specializedPacketHandlerto handle responsePackets.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidhandleFailure(ChannelException exception, P requestPacket, C connection)Handles the failure of a responsePacket.voidhandleResponse(R responsePacket, P requestPacket, C connection)Handles the responsePacketsent by a client connection.
 
- 
- 
- 
Method Detail- 
handleResponsevoid handleResponse(R responsePacket, P requestPacket, C connection) Handles the responsePacketsent by a client connection.- Parameters:
- responsePacket- The response packet that was received
- requestPacket- The packet that was send to request the response
- connection- The connection that sent the packet
 
 - 
handleFailuredefault void handleFailure(ChannelException exception, P requestPacket, C connection) Handles the failure of a responsePacket. TheChannelExceptionwhich causes the failure will usually be aNoResponseException, this is caused by the other side ignoring the request or failing to send a response.- Parameters:
- exception- The exception that caused the failure
- requestPacket- The packet that was send to request the response
- connection- The remote connection that received the failure
 
 
- 
 
-