org.apache.log4j.receivers.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

    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.receivers.net.NetworkBased

      `getName, isActive`

- - ### Method Detail

    - #### getPort

          int getPort()

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

Copyright © 2013 The Apache Software Foundation. Licensed under the Apache License, Version 2.0

Apache Extras for Apache log4j, Apache log4j and Apache are trademarks of the Apache Software Foundation.