Interface DomainSocketWatcher.Handler

Enclosing class:
DomainSocketWatcher

public static interface DomainSocketWatcher.Handler
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Handles an event on a socket.
  • Method Details

    • handle

      boolean handle(DomainSocket sock)
      Handles an event on a socket. An event may be the socket becoming readable, or the remote end being closed.
      Parameters:
      sock - The socket that the event occurred on.
      Returns:
      Whether we should close the socket.