Package org.apache.log4j.net
Interface PortBased
- All Superinterfaces:
NetworkBased
- All Known Implementing Classes:
MulticastAppender
,MulticastReceiver
,UDPAppender
,UDPReceiver
,XMLSocketReceiver
Net based entities that 'work with' a Port should consider implementing this
interface so that they can be treated generically.
-
Method Summary
Modifier and TypeMethodDescriptionint
getPort()
Returns the Port # that this net based thing is using.Methods inherited from interface org.apache.log4j.net.NetworkBased
getName, isActive
-
Method Details
-
getPort
int getPort()Returns the Port # that this net based thing is using.- Returns:
- int port number
-