Class ComBinary
java.lang.Object
one.microstream.communication.binary.types.ComBinary
public class ComBinary extends Object
-
Method Summary
-
Method Details
-
chunkHeaderLength
public static int chunkHeaderLength()The length of the fixed-size chunk header.So far, the header only consists of one field holding the length of the chunk content. See
Binary.lengthLength(). And an crc32 checksum of the chunk content length 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- Returns:
- The length of the fixed-size chunk header.
-
getChunkHeaderContentLength
public static long getChunkHeaderContentLength(ByteBuffer directByteBuffer, boolean switchedByteOrder) -
getChunkHeaderContentLengthChecksum
public static long getChunkHeaderContentLengthChecksum(ByteBuffer directByteBuffer, boolean switchedByteOrder) -
setChunkHeaderContentLength
public static ByteBuffer setChunkHeaderContentLength(ByteBuffer directByteBuffer, long contentLength, boolean switchedByteOrder) -
setChunkHeaderContentLengthChecksum
public static ByteBuffer setChunkHeaderContentLengthChecksum(ByteBuffer directByteBuffer, long checksum, boolean switchedByteOrder) -
calculateChunkHeaderContentLengthChecksum
-
calculateCRC32Checksum
-
operationTimeout
public static int operationTimeout() -
readChunk
public static ByteBuffer readChunk(ComConnection connection, ByteBuffer defaultBuffer, boolean switchedByteOrder) throws ComException, ComExceptionTimeout- Throws:
ComExceptionComExceptionTimeout
-
writeChunk
public static void writeChunk(ComConnection connection, ByteBuffer headerBuffer, ByteBuffer[] buffers) throws ComException, ComExceptionTimeout- Throws:
ComExceptionComExceptionTimeout
-
DefaultPersistenceAdaptorCreator
-
Foundation
-
Host
-
Host
-
Host
-
Host
public static final ComHost<ComConnection> Host(ComHostChannelAcceptor<ComConnection> channelAcceptor) -
Host
public static final ComHost<ComConnection> Host(int localHostPort, ComHostChannelAcceptor<ComConnection> channelAcceptor) -
Host
public static final ComHost<ComConnection> Host(InetSocketAddress targetAddress, ComHostChannelAcceptor<ComConnection> channelAcceptor) -
runHost
public static final void runHost() -
runHost
public static final void runHost(int localHostPort) -
runHost
-
runHost
-
runHost
public static final void runHost(int localHostPort, ComHostChannelAcceptor<ComConnection> channelAcceptor) -
runHost
public static final void runHost(InetSocketAddress targetAddress, ComHostChannelAcceptor<ComConnection> channelAcceptor) -
Client
-
Client
-
Client
-
connect
-
connect
-
connect
-