public class VanillaChronicleServerSocketChannel extends Object implements ChronicleServerSocketChannel
| Constructor and Description |
|---|
VanillaChronicleServerSocketChannel() |
VanillaChronicleServerSocketChannel(String hostPort) |
| Modifier and Type | Method and Description |
|---|---|
ChronicleSocketChannel |
accept() |
void |
bind(InetSocketAddress address)
Binds the channel's socket to a local address and configures the socket
to listen for connections.
|
void |
close() |
void |
configureBlocking(boolean configureBlocking) |
SocketAddress |
getLocalAddress() |
String |
hostPort() |
VanillaChronicleServerSocketChannel |
hostPort(String hostPort) |
boolean |
isOpen() |
void |
setOption(SocketOption<Boolean> soReuseaddr,
boolean b) |
ChronicleServerSocket |
socket() |
String |
toString() |
public VanillaChronicleServerSocketChannel()
public VanillaChronicleServerSocketChannel(String hostPort)
public ChronicleSocketChannel accept() throws IOException
accept in interface ChronicleServerSocketChannelIOExceptionpublic boolean isOpen()
isOpen in interface ChronicleServerSocketChannelpublic ChronicleServerSocket socket()
socket in interface ChronicleServerSocketChannelpublic void close()
close in interface Closeableclose in interface AutoCloseableclose in interface ChronicleServerSocketChannelpublic void bind(InetSocketAddress address) throws IOException
ChronicleServerSocketChannelAn invocation of this method is equivalent to the following:
bind(local, 0);
bind in interface ChronicleServerSocketChanneladdress - The local address to bind the socket, or null to bind
to an automatically assigned socket addressClosedChannelException - if channel is closedIOException - if unable to openpublic SocketAddress getLocalAddress() throws IOException
getLocalAddress in interface ChronicleServerSocketChannelIOExceptionpublic void setOption(SocketOption<Boolean> soReuseaddr, boolean b) throws IOException
setOption in interface ChronicleServerSocketChannelIOExceptionpublic void configureBlocking(boolean configureBlocking)
throws IOException
configureBlocking in interface ChronicleServerSocketChannelIOExceptionpublic String hostPort()
hostPort in interface ChronicleServerSocketChannelpublic VanillaChronicleServerSocketChannel hostPort(String hostPort)
Copyright © 2023. All rights reserved.