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, toString
public String getSocketBindingName()
ManagedBinding
getSocketBindingName
in interface ManagedBinding
null
if not availablepublic InetSocketAddress getBindAddress()
ManagedBinding
getBindAddress
in interface ManagedBinding
public void bind(SocketAddress endpoint, int backlog) throws IOException
bind
in class ServerSocket
IOException
public Socket accept() throws IOException
accept
in class ServerSocket
IOException
public void close() throws IOException
ManagedBinding
close
in interface Closeable
close
in interface AutoCloseable
close
in interface ManagedBinding
close
in class ServerSocket
IOException
- if an I/O error occurspublic long getAcceptCount()
Copyright © 2023 JBoss by Red Hat. All rights reserved.