Log4j 1.3alpha-3

org.apache.log4j.net
Interface PortBased

All Superinterfaces:
NetworkBased
All Known Implementing Classes:
MulticastAppender, MulticastReceiver, SocketHubReceiver, SocketReceiver, SocketReceiver.SocketDetail, 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

Method Summary
 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

public int getPort()
Returns the Port # that this net based thing is using

Returns:
int port number

Log4j 1.3alpha-3

Copyright 2000-2003 Apache Software Foundation.