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.

@FunctionalInterface public interface PacketSendCompletion
Callback for one tracked outbound write.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Runs once after transport completion, cancellation, failure, or lifecycle abort.
  • Method Details

    • onComplete

      void onComplete(PacketSendResult result) throws Exception
      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