Interface SocketInterceptor

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 SocketInterceptor
Layer-4 hook invoked for accepted inbound TCP sockets before LoomCache registers the connection.

Implementations may inspect or customize the socket, perform a custom handshake, or throw to reject the connection. Rejected sockets are closed by the TCP server.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onAccept(Socket socket)