public String description ( ) { final StringBuilder builder = new StringBuilder ( "UdpChannel - " ) ; if ( null != localInterface ) { builder . append ( "interface: " ) . append ( localInterface . getDisplayName ( ) ) . append ( ", " ) ; } builder . append ( "localData: " ) . append ( localData ) . append ( ", remoteData: " ) . append ( remoteData ) . append ( ", ttl: " ) . append ( multicastTtl ) ; return builder . toString ( ) ; }
Used for debugging to get a human readable description of the channel .