public class SinkTcpInitiator extends SinkTcp
| Constructor and Description |
|---|
SinkTcpInitiator(ChronicleQueueBuilder.ReplicaChronicleQueueBuilder builder) |
| Modifier and Type | Method and Description |
|---|---|
String |
debugString() |
boolean |
isLocalhost() |
boolean |
isOpen() |
SocketChannel |
openSocketChannel() |
int |
read(ByteBuffer buffer) |
boolean |
read(ByteBuffer buffer,
int size) |
boolean |
read(ByteBuffer buffer,
int threshod,
int size) |
boolean |
read(ByteBuffer buffer,
int threshod,
int size,
int readCount) |
boolean |
readAllOrNone(ByteBuffer buffer,
int readCount) |
boolean |
readAtLeast(ByteBuffer buffer,
int size,
int readCount) |
void |
readAvailable(ByteBuffer bb) |
void |
readFullyOrEOF(ByteBuffer bb) |
boolean |
readUpTo(ByteBuffer buffer,
int size,
int readCount) |
protected void |
setSocketChannel(SocketChannel socketChannel) |
SocketChannel |
socketChannel() |
int |
write(ByteBuffer buffer) |
void |
writeAction(ByteBuffer buffer,
long action,
long index) |
void |
writeAll(ByteBuffer bb) |
void |
writeAll(net.openhft.lang.io.DirectByteBufferBytes bb) |
void |
writeAllOrEOF(ByteBuffer bb) |
void |
writeAllOrEOF(net.openhft.lang.io.DirectByteBufferBytes bb) |
void |
writeSizeAndIndex(ByteBuffer buffer,
int action,
long index) |
public SinkTcpInitiator(ChronicleQueueBuilder.ReplicaChronicleQueueBuilder builder)
public SocketChannel openSocketChannel() throws IOException
openSocketChannel in class SinkTcpIOExceptionpublic boolean isLocalhost()
isLocalhost in class SinkTcpprotected void setSocketChannel(SocketChannel socketChannel) throws IOException
IOExceptionpublic SocketChannel socketChannel()
public boolean isOpen()
public String debugString()
public int write(ByteBuffer buffer) throws IOException
IOExceptionpublic void writeAllOrEOF(net.openhft.lang.io.DirectByteBufferBytes bb)
throws IOException
IOExceptionpublic void writeAllOrEOF(ByteBuffer bb) throws IOException
IOExceptionpublic void writeAll(net.openhft.lang.io.DirectByteBufferBytes bb)
throws IOException
IOExceptionpublic void writeAll(ByteBuffer bb) throws IOException
IOExceptionpublic int read(ByteBuffer buffer) throws IOException
IOExceptionpublic boolean read(ByteBuffer buffer, int size) throws IOException
IOExceptionpublic boolean read(ByteBuffer buffer, int threshod, int size) throws IOException
IOExceptionpublic boolean read(ByteBuffer buffer, int threshod, int size, int readCount) throws IOException
IOExceptionpublic boolean readAtLeast(ByteBuffer buffer, int size, int readCount) throws IOException
IOExceptionpublic boolean readAllOrNone(ByteBuffer buffer, int readCount) throws IOException
IOExceptionpublic void readFullyOrEOF(@NotNull
ByteBuffer bb)
throws IOException
IOExceptionpublic void readAvailable(@NotNull
ByteBuffer bb)
throws IOException
IOExceptionpublic boolean readUpTo(ByteBuffer buffer, int size, int readCount) throws IOException
IOExceptionpublic void writeSizeAndIndex(ByteBuffer buffer, int action, long index) throws IOException
IOExceptionpublic void writeAction(ByteBuffer buffer, long action, long index) throws IOException
IOExceptionCopyright © 2021. All rights reserved.