public class ManagedDatagramSocketBinding extends DatagramSocket implements ManagedBinding
DatagramSocket binding, automatically registering itself
at the SocketBindingManager when bound.ManagedBinding.Factory| Modifier and Type | Method and Description |
|---|---|
void |
bind(SocketAddress addr) |
void |
close()
Close and unregister this binding.
|
InetSocketAddress |
getBindAddress()
Get the bind address.
|
String |
getSocketBindingName()
Get the optional socket binding configuration name.
|
connect, connect, disconnect, getBroadcast, getChannel, getInetAddress, getLocalAddress, getLocalPort, getLocalSocketAddress, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoTimeout, getTrafficClass, isBound, isClosed, isConnected, receive, send, setBroadcast, setDatagramSocketImplFactory, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSoTimeout, setTrafficClasspublic String getSocketBindingName()
ManagedBindinggetSocketBindingName in interface ManagedBindingnull if not availablepublic InetSocketAddress getBindAddress()
ManagedBindinggetBindAddress in interface ManagedBindingpublic void bind(SocketAddress addr) throws SocketException
bind in class DatagramSocketSocketExceptionpublic void close()
ManagedBindingclose in interface Closeableclose in interface AutoCloseableclose in interface ManagedBindingclose in class DatagramSocketCopyright © 2014 JBoss by Red Hat. All rights reserved.