예제 #1
0
 public static void FillMetaData(UnsafeBuffer cncMetaDataBuffer, int toDriverBufferLength, int toClientsBufferLength, int counterMetaDataBufferLength, int counterValuesBufferLength, long clientLivenessTimeout, int errorLogBufferLength)
 {
     cncMetaDataBuffer.PutInt(ToDriverBufferLengthOffset(0), toDriverBufferLength);
     cncMetaDataBuffer.PutInt(ToClientsBufferLengthOffset(0), toClientsBufferLength);
     cncMetaDataBuffer.PutInt(CountersMetaDataBufferLengthOffset(0), counterMetaDataBufferLength);
     cncMetaDataBuffer.PutInt(CountersValuesBufferLengthOffset(0), counterValuesBufferLength);
     cncMetaDataBuffer.PutLong(ClientLivenessTimeoutOffset(0), clientLivenessTimeout);
     cncMetaDataBuffer.PutInt(ErrorLogBufferLengthOffset(0), errorLogBufferLength);
     cncMetaDataBuffer.PutIntVolatile(CncVersionOffset(0), CNC_VERSION);
 }
예제 #2
0
 public static void SignalCncReady(UnsafeBuffer cncMetaDataBuffer)
 {
     cncMetaDataBuffer.PutIntVolatile(CncVersionOffset(0), CNC_VERSION);
 }
예제 #3
0
 public void MemberId(int memberId)
 {
     buffer.PutIntVolatile(MarkFileHeaderEncoder.MemberIdEncodingOffset(), memberId);
     markFile.MappedByteBuffer().Flush();
 }
예제 #4
0
 public void MemberId(int memberId)
 {
     buffer.PutIntVolatile(MarkFileHeaderEncoder.MemberIdEncodingOffset(), memberId);
 }