本文整理了Java中io.aeron.logbuffer.Header.<init>()
方法的一些代码示例,展示了Header.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Header.<init>()
方法的具体详情如下:
包路径:io.aeron.logbuffer.Header
类名称:Header
方法名:<init>
[英]Construct a header that references a buffer for the log.
[中]构造引用日志缓冲区的标头。
代码示例来源:origin: real-logic/aeron
this.positionBitsToShift = LogBufferDescriptor.positionBitsToShift(termLength);
this.initialTermId = LogBufferDescriptor.initialTermId(logBuffers.metaDataBuffer());
header = new Header(initialTermId, positionBitsToShift, this);
代码示例来源:origin: real-logic/aeron
final Header header = new Header(INITIAL_TERM_ID, Integer.numberOfLeadingZeros(TERM_BUFFER_LENGTH));
header.buffer(buffer);
代码示例来源:origin: real-logic/aeron
final Header header = new Header(INITIAL_TERM_ID, Integer.numberOfLeadingZeros(TERM_BUFFER_LENGTH));
header.buffer(buffer);
代码示例来源:origin: io.aeron/aeron-all
this.positionBitsToShift = LogBufferDescriptor.positionBitsToShift(termLength);
this.initialTermId = LogBufferDescriptor.initialTermId(logBuffers.metaDataBuffer());
header = new Header(initialTermId, positionBitsToShift, this);
代码示例来源:origin: io.aeron/aeron-client
this.positionBitsToShift = LogBufferDescriptor.positionBitsToShift(termLength);
this.initialTermId = LogBufferDescriptor.initialTermId(logBuffers.metaDataBuffer());
header = new Header(initialTermId, positionBitsToShift, this);
内容来源于网络,如有侵权,请联系作者删除!