org.apache.log4j.net

## Interface PortBased

- All Superinterfaces:
    NetworkBased
  All Known Implementing Classes:
    MulticastAppender, MulticastReceiver, SocketHubReceiver, SocketReceiver, UDPAppender, UDPReceiver, XMLSocketReceiver

      public interface PortBased
      extends NetworkBased

  Net based entities that 'work with' a Port should consider implementing this interface so that they can be treated generically.
  Author:
    Paul Smith (psmith@apache.org)

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `getPort()` Returns the Port # that this net based thing is using.

    - ### Methods inherited from interface org.apache.log4j.net.NetworkBased

      `getName, isActive`

- - ### Method Detail

    - #### getPort

          int getPort()

      Returns the Port # that this net based thing is using.
      Returns:
        int port number

Copyright © 2002-2018 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache Chainsaw, Chainsaw, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.