DomainSocketWatcher.Handler (Apache Hadoop Common 3.5.0 API)
Description: declaration: package: org.apache.hadoop.net.unix, class: DomainSocketWatcher, interface: Handler

Package org.apache.hadoop.net.unix

# Interface DomainSocketWatcher.Handler

Enclosing class:
  DomainSocketWatcher

public static interface DomainSocketWatcher.Handler

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `handle(DomainSocket sock)`
  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.