public class ComBinary extends Object
public static int chunkHeaderLength()
So far, the header only consists of one field holding the length of the chunk content.
See Binary.lengthLength().
In the future, the header might contain validation values like protocol name, version, byte order, etc.
Maybe, the consequence will be a dynamically sized header, meaning there
public static long getChunkHeaderContentLength(ByteBuffer directByteBuffer, boolean switchedByteOrder)
public static ByteBuffer setChunkHeaderContentLength(ByteBuffer directByteBuffer, long contentLength, boolean switchedByteOrder)
public static int operationTimeout()
public static ByteBuffer readChunk(SocketChannel channel, ByteBuffer defaultBuffer, boolean switchedByteOrder) throws one.microstream.com.ComException, one.microstream.com.ComExceptionTimeout
one.microstream.com.ComExceptionone.microstream.com.ComExceptionTimeoutpublic static void writeChunk(SocketChannel channel, ByteBuffer headerBuffer, ByteBuffer[] buffers) throws one.microstream.com.ComException, one.microstream.com.ComExceptionTimeout
one.microstream.com.ComExceptionone.microstream.com.ComExceptionTimeoutpublic static ComPersistenceAdaptorBinary.Creator.Default DefaultPersistenceAdaptorCreator()
public static ComFoundation.Default<?> Foundation()
public static final ComHost<SocketChannel> Host()
public static final ComHost<SocketChannel> Host(int localHostPort)
public static final ComHost<SocketChannel> Host(InetSocketAddress targetAddress)
public static final ComHost<SocketChannel> Host(ComHostChannelAcceptor<SocketChannel> channelAcceptor)
public static final ComHost<SocketChannel> Host(int localHostPort, ComHostChannelAcceptor<SocketChannel> channelAcceptor)
public static final ComHost<SocketChannel> Host(InetSocketAddress targetAddress, ComHostChannelAcceptor<SocketChannel> channelAcceptor)
public static final void runHost()
public static final void runHost(int localHostPort)
public static final void runHost(InetSocketAddress targetAddress)
public static final void runHost(ComHostChannelAcceptor<SocketChannel> channelAcceptor)
public static final void runHost(int localHostPort,
ComHostChannelAcceptor<SocketChannel> channelAcceptor)
public static final void runHost(InetSocketAddress targetAddress, ComHostChannelAcceptor<SocketChannel> channelAcceptor)
public static final ComClient<SocketChannel> Client()
public static final ComClient<SocketChannel> Client(int localHostPort)
public static final ComClient<SocketChannel> Client(InetSocketAddress targetAddress)
public static final ComClientChannel<SocketChannel> connect()
public static final ComClientChannel<SocketChannel> connect(int localHostPort)
public static final ComClientChannel<SocketChannel> connect(InetSocketAddress targetAddress)
Copyright © 2021 MicroStream Software. All rights reserved.