- Type Parameters:
T
- type of context
- All Known Subinterfaces:
Http1ConnectionListener
- All Known Implementing Classes:
Http1LoggingConnectionListener
public interface DataListener<T>
A listener for data.
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
Data received or sent.default void
data
(T ctx, BufferData data) Data received or sent.
-
Method Details
-
data
Data received or sent.- Parameters:
ctx
- contextdata
- data
-
data
Data received or sent.- Parameters:
ctx
- contextdata
- byte arrayposition
- position within the byte arrayoffset
- number of bytes
-