| Package | Description |
|---|---|
| net.openhft.chronicle.network | |
| net.openhft.chronicle.network.connection | |
| net.openhft.chronicle.network.tcp |
| Modifier and Type | Method and Description |
|---|---|
ChronicleSocketChannel |
AcceptStrategy.accept(ChronicleServerSocketChannel ssc)
Determine whether to accept the incoming connection
|
@Nullable ChronicleSocketChannel |
AlwaysStartOnPrimaryConnectionStrategy.connect(@NotNull String name,
@NotNull SocketAddressSupplier socketAddressSupplier,
boolean didLogIn,
@Nullable FatalFailureMonitor fatalFailureMonitor) |
ChronicleSocketChannel |
ConnectionStrategy.connect(@NotNull String name,
@NotNull SocketAddressSupplier socketAddressSupplier,
boolean didLogIn,
@NotNull FatalFailureMonitor fatalFailureMonitor)
Connects and returns a new SocketChannel.
|
static ChronicleSocketChannel |
TCPRegistry.createSocketChannel(boolean isNative,
@NotNull String description) |
static ChronicleSocketChannel |
TCPRegistry.createSocketChannel(@NotNull String description) |
@Nullable ChronicleSocketChannel |
ChronicleSocketChannelBuilder.open()
Open a socket channel with the builder's current settings
|
default @Nullable ChronicleSocketChannel |
ConnectionStrategy.openSocketChannel(@NotNull InetSocketAddress socketAddress,
int tcpBufferSize,
long timeoutMs) |
default @Nullable ChronicleSocketChannel |
ConnectionStrategy.openSocketChannel(@NotNull InetSocketAddress socketAddress,
int tcpBufferSize,
long timeoutMs,
int socketConnectionTimeoutMs)
the reason for this method is that unlike the selector it uses tick time
|
ChronicleSocketChannel |
NetworkContext.socketChannel() |
ChronicleSocketChannel |
VanillaNetworkContext.socketChannel() |
ChronicleSocketChannel |
TcpEventHandler.socketChannel() |
static @Nullable ChronicleSocketChannel |
ConnectionStrategy.socketChannel(@NotNull InetSocketAddress socketAddress,
int tcpBufferSize,
int socketConnectionTimeoutMs)
Deprecated.
Use
builder(InetSocketAddress) instead |
| Modifier and Type | Method and Description |
|---|---|
static <N extends NetworkContext<N>> |
NetworkStatsListener.notifyHostPort(@Nullable ChronicleSocketChannel sc,
@Nullable NetworkStatsListener<N> nl)
notifies the NetworkStatsListener of the host and port based on the SocketChannel
|
int |
TcpEventHandler.SocketReader.read(@NotNull ChronicleSocketChannel socketChannel,
@NotNull net.openhft.chronicle.bytes.Bytes<ByteBuffer> bytes)
Reads content from the provided
socketChannel into the provided bytes. |
int |
TcpEventHandler.DefaultSocketReader.read(@NotNull ChronicleSocketChannel socketChannel,
@NotNull net.openhft.chronicle.bytes.Bytes<ByteBuffer> bytes) |
int |
ReadWithFlowControl.read(@NotNull ChronicleSocketChannel socketChannel,
@NotNull net.openhft.chronicle.bytes.Bytes<ByteBuffer> bytes)
reads just a single message from the socket
|
T |
NetworkContext.socketChannel(@NotNull ChronicleSocketChannel sc) |
T |
VanillaNetworkContext.socketChannel(@NotNull ChronicleSocketChannel socketChannel) |
| Modifier and Type | Method and Description |
|---|---|
@Nullable ChronicleSocketChannel |
FatalFailureConnectionStrategy.connect(@NotNull String name,
@NotNull SocketAddressSupplier socketAddressSupplier,
boolean didLogIn,
@Nullable FatalFailureMonitor fatalFailureMonitor) |
| Modifier and Type | Class and Description |
|---|---|
class |
FastJ8SocketChannel |
class |
UnsafeFastJ8SocketChannel
Doesn't do any locking so can only be used in a single-threaded manner
|
class |
VanillaSocketChannel |
| Modifier and Type | Method and Description |
|---|---|
ChronicleSocketChannel |
VanillaChronicleServerSocketChannel.accept() |
ChronicleSocketChannel |
ChronicleServerSocketChannel.accept() |
static ChronicleSocketChannel |
ChronicleSocketChannelFactory.wrap() |
static ChronicleSocketChannel |
ChronicleSocketChannelFactory.wrap(boolean isNative,
InetSocketAddress socketAddress) |
static ChronicleSocketChannel |
ChronicleSocketChannelFactory.wrap(boolean isNative,
@NotNull SocketChannel sc) |
static ChronicleSocketChannel |
ChronicleSocketChannelFactory.wrap(InetSocketAddress socketAddress) |
static ChronicleSocketChannel |
ChronicleSocketChannelFactory.wrap(@NotNull SocketChannel sc) |
static ChronicleSocketChannel |
ChronicleSocketChannelFactory.wrapUnsafe(@NotNull SocketChannel sc) |
Copyright © 2023. All rights reserved.