public class ManagedServerSocketBinding extends ServerSocket implements ManagedBinding
ServerSocket binding, automatically registering itself
at the SocketBindingManager when bound.ManagedBinding.Factory| Modifier and Type | Method and Description |
|---|---|
Socket |
accept() |
void |
bind(SocketAddress endpoint,
int backlog) |
void |
close()
Close and unregister this binding.
|
long |
getAcceptCount() |
InetSocketAddress |
getBindAddress()
Get the bind address.
|
String |
getSocketBindingName()
Get the optional socket binding configuration name.
|
bind, getChannel, getInetAddress, getLocalPort, getLocalSocketAddress, getReceiveBufferSize, getReuseAddress, getSoTimeout, implAccept, isBound, isClosed, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSocketFactory, setSoTimeout, toStringpublic String getSocketBindingName()
ManagedBindinggetSocketBindingName in interface ManagedBindingnull if not availablepublic InetSocketAddress getBindAddress()
ManagedBindinggetBindAddress in interface ManagedBindingpublic void bind(SocketAddress endpoint, int backlog) throws IOException
bind in class ServerSocketIOExceptionpublic Socket accept() throws IOException
accept in class ServerSocketIOExceptionpublic void close()
throws IOException
ManagedBindingclose in interface Closeableclose in interface AutoCloseableclose in interface ManagedBindingclose in class ServerSocketIOException - if an I/O error occurspublic long getAcceptCount()
Copyright © 2014 JBoss by Red Hat. All rights reserved.