Package | Description |
---|---|
org.snf4j.core |
Provides interfaces and classes implementing the core functionalities of the
API.
|
org.snf4j.core.codec |
Provides interfaces and classes for implementing encoders, decoders and
codec pipelines.
|
org.snf4j.core.codec.bytes |
Encoders and decoders which transform an array of bytes into a
ByteBuffer and vice versa. |
org.snf4j.core.session |
Provides classes and interfaces used for session handling.
|
Modifier and Type | Class and Description |
---|---|
class |
ByteBufferHolder
Default implementation of byte buffer holder.
|
class |
SingleByteBufferHolder
A byte buffer holder that stores only one byte buffer.
|
Modifier and Type | Method and Description |
---|---|
IFuture<Void> |
EngineDatagramSession.send(SocketAddress remoteAddress,
IByteBufferHolder datagram) |
IFuture<Void> |
DatagramSession.send(SocketAddress remoteAddress,
IByteBufferHolder datagram) |
void |
EngineDatagramSession.sendnf(SocketAddress remoteAddress,
IByteBufferHolder datagram) |
void |
DatagramSession.sendnf(SocketAddress remoteAddress,
IByteBufferHolder datagram) |
IFuture<Void> |
EngineDatagramSession.write(IByteBufferHolder datagram) |
IFuture<Void> |
EngineStreamSession.write(IByteBufferHolder holder) |
IFuture<Void> |
DatagramSession.write(IByteBufferHolder datagram) |
IFuture<Void> |
StreamSession.write(IByteBufferHolder holder) |
void |
EngineDatagramSession.writenf(IByteBufferHolder datagram) |
void |
EngineStreamSession.writenf(IByteBufferHolder holder) |
void |
DatagramSession.writenf(IByteBufferHolder datagram) |
void |
StreamSession.writenf(IByteBufferHolder holder) |
Modifier and Type | Method and Description |
---|---|
List<Object> |
ICodecExecutor.encode(ISession session,
IByteBufferHolder data)
Encodes bytes from a byte buffer holder.
|
List<Object> |
DefaultCodecExecutor.encode(ISession session,
IByteBufferHolder data) |
Modifier and Type | Method and Description |
---|---|
Class<IByteBufferHolder> |
BufferHolderToArrayCodec.getInboundType() |
Class<IByteBufferHolder> |
BufferHolderToBufferCodec.getInboundType() |
Class<IByteBufferHolder> |
BufferToBufferHolderCodec.getOutboundType() |
Class<IByteBufferHolder> |
ArrayToBufferHolderCodec.getOutboundType() |
Modifier and Type | Method and Description |
---|---|
void |
BufferHolderToArrayDecoder.decode(ISession session,
IByteBufferHolder data,
List<byte[]> out) |
void |
BufferHolderToBufferDecoder.decode(ISession session,
IByteBufferHolder data,
List<ByteBuffer> out) |
void |
BufferHolderToArrayEncoder.encode(ISession session,
IByteBufferHolder data,
List<byte[]> out) |
void |
BufferHolderToBufferEncoder.encode(ISession session,
IByteBufferHolder data,
List<ByteBuffer> out) |
static byte[] |
BufferHolderToArrayCodec.toArray(IByteBufferHolder holder)
Converts an
IByteBufferHolder into an array of bytes. |
Modifier and Type | Method and Description |
---|---|
void |
ArrayToBufferHolderDecoder.decode(ISession session,
byte[] data,
List<IByteBufferHolder> out) |
void |
BufferToBufferHolderDecoder.decode(ISession session,
ByteBuffer data,
List<IByteBufferHolder> out) |
void |
ArrayToBufferHolderEncoder.encode(ISession session,
byte[] data,
List<IByteBufferHolder> out) |
void |
BufferToBufferHolderEncoder.encode(ISession session,
ByteBuffer data,
List<IByteBufferHolder> out) |
Modifier and Type | Method and Description |
---|---|
IFuture<Void> |
IDatagramSession.send(SocketAddress remoteAddress,
IByteBufferHolder datagram)
Sends a
datagram.remaining() byte datagram from the specified byte
buffer holder to a remote end via the datagram-oriented channel associated with
this session. |
void |
IDatagramSession.sendnf(SocketAddress remoteAddress,
IByteBufferHolder datagram)
Sends a
datagram.remaining() byte datagram from the specified byte
buffer holder to a remote end via the datagram-oriented channel associated with
this session. |
IFuture<Void> |
IStreamSession.write(IByteBufferHolder holder)
Writes
holder.remaining() bytes from the specified byte buffer
holder to the stream-oriented channel associated with this session. |
IFuture<Void> |
IDatagramSession.write(IByteBufferHolder datagram)
Writes a
datagram.remaining() byte datagram from the specified byte buffer
holder to the datagram-oriented channel associated with this session. |
void |
IStreamSession.writenf(IByteBufferHolder holder)
Writes
holder.remaining() bytes from the specified
byte buffer holder to the stream-oriented channel associated with
this session. |
void |
IDatagramSession.writenf(IByteBufferHolder datagram)
Writes a
datagram.remaining() byte datagram from the specified byte buffer
holder to the datagram-oriented channel associated with this session. |
Copyright © 2017–2022 SNF4J.ORG. All rights reserved.