Interface ClientCallback
- All Known Implementing Classes:
MultiEndpointPoolSample
public interface ClientCallback
The general callback interface to be used by a
ClientFilter to
delegate client Connection's event processing.-
Method Summary
Modifier and TypeMethodDescriptionvoidonConnectionEstablished(org.glassfish.grizzly.Connection connection) The callback operation will be executed once new client-sideConnectionis established.voidonResponseReceived(org.glassfish.grizzly.Connection connection, String responseMessage) The callback operation will be executed once a clientConnectionreceives response from a server.
-
Method Details
-
onConnectionEstablished
void onConnectionEstablished(org.glassfish.grizzly.Connection connection) The callback operation will be executed once new client-sideConnectionis established.- Parameters:
connection- the newConnection
-
onResponseReceived
The callback operation will be executed once a clientConnectionreceives response from a server.- Parameters:
connection- the client-sideConnectionresponseMessage- the response
-