Package devs.beer.nativepackets.api
Interface PacketSendCompletion
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Callback for one tracked outbound write.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonComplete(PacketSendResult result) Runs once after transport completion, cancellation, failure, or lifecycle abort.
-
Method Details
-
onComplete
Runs once after transport completion, cancellation, failure, or lifecycle abort. Normal transport callbacks run on the connection EventLoop. Lifecycle cleanup schedules there when possible and falls back to the cleanup caller only if the EventLoop rejects execution. Packet events, typed views, and borrowed native values remain dispatch-scoped and must not be retained for this callback.- Parameters:
result- immutable completion result- Throws:
Exception- when consumer handling fails
-