public class VanillaSocketChannel extends net.openhft.chronicle.core.io.AbstractCloseable implements ChronicleSocketChannel
| Modifier and Type | Field and Description |
|---|---|
protected SocketChannel |
socketChannel |
| Constructor and Description |
|---|
VanillaSocketChannel(SocketChannel socketChannel) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(InetSocketAddress localAddress) |
void |
configureBlocking(boolean blocking) |
void |
connect(InetSocketAddress socketAddress) |
boolean |
finishConnect() |
InetSocketAddress |
getLocalAddress() |
InetSocketAddress |
getRemoteAddress() |
boolean |
isBlocking() |
boolean |
isOpen() |
protected void |
performClose() |
int |
read(ByteBuffer byteBuffer) |
void |
register(Selector selector,
int opConnect) |
void |
setOption(SocketOption<Boolean> soReuseaddr,
boolean b) |
protected boolean |
shouldPerformCloseInBackground() |
ChronicleSocket |
socket() |
SocketChannel |
socketChannel() |
String |
toString() |
int |
write(ByteBuffer byteBuffer) |
long |
write(ByteBuffer[] byteBuffer) |
assertCloseable, assertCloseablesClosed, clearUsedByThread, close, createdHere, disableCloseableTracing, disableThreadSafetyCheck, disableThreadSafetyCheck, enableCloseableTracing, gcAndWaitForCloseablesToClose, isClosed, isClosing, isInUserThread, referenceId, resetUsedByThread, shouldWaitForClosed, singleThreadedCheckDisabled, singleThreadedCheckDisabled, singleThreadedCheckReset, threadSafetyCheck, throwExceptionIfClosed, throwExceptionIfClosedInSetter, unmonitor, waitForCloseablesToClose, waitForClosed, warnAndCloseIfNotClosedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitbuilderprotected final SocketChannel socketChannel
public VanillaSocketChannel(SocketChannel socketChannel)
public SocketChannel socketChannel()
socketChannel in interface ChronicleSocketChannelpublic int read(ByteBuffer byteBuffer) throws IOException
read in interface ChronicleSocketChannelIOExceptionpublic int write(ByteBuffer byteBuffer) throws IOException
write in interface ChronicleSocketChannelIOExceptionpublic long write(ByteBuffer[] byteBuffer) throws IOException
write in interface ChronicleSocketChannelIOExceptionpublic ChronicleSocket socket()
socket in interface ChronicleSocketChannelpublic void configureBlocking(boolean blocking)
throws IOException
configureBlocking in interface ChronicleSocketChannelIOExceptionpublic void connect(InetSocketAddress socketAddress) throws IOException
connect in interface ChronicleSocketChannelIOExceptionpublic void register(Selector selector, int opConnect) throws ClosedChannelException
register in interface ChronicleSocketChannelClosedChannelExceptionpublic boolean finishConnect()
throws IOException
finishConnect in interface ChronicleSocketChannelIOExceptionpublic void setOption(SocketOption<Boolean> soReuseaddr, boolean b) throws IOException
setOption in interface ChronicleSocketChannelIOExceptionpublic void bind(InetSocketAddress localAddress) throws IOException
bind in interface ChronicleSocketChannelIOExceptionpublic InetSocketAddress getRemoteAddress() throws net.openhft.chronicle.core.io.IORuntimeException
getRemoteAddress in interface ChronicleSocketChannelnet.openhft.chronicle.core.io.IORuntimeExceptionpublic InetSocketAddress getLocalAddress() throws net.openhft.chronicle.core.io.IORuntimeException
getLocalAddress in interface ChronicleSocketChannelnet.openhft.chronicle.core.io.IORuntimeExceptionpublic boolean isOpen()
isOpen in interface ChronicleSocketChannelpublic boolean isBlocking()
isBlocking in interface ChronicleSocketChannelprotected boolean shouldPerformCloseInBackground()
shouldPerformCloseInBackground in class net.openhft.chronicle.core.io.AbstractCloseableprotected void performClose()
performClose in class net.openhft.chronicle.core.io.AbstractCloseablepublic String toString()
toString in class net.openhft.chronicle.core.io.AbstractCloseableCopyright © 2023. All rights reserved.