/** * set position counter id field * * @param positionCounterId field value * @return flyweight */ public PublicationBuffersReadyFlyweight publicationLimitCounterId(final int positionCounterId) { buffer.putInt(offset + PUBLICATION_LIMIT_COUNTER_ID_OFFSET, positionCounterId); return this; }
/** * Set channel status counter id field * * @param counterId field value * @return flyweight */ public PublicationBuffersReadyFlyweight channelStatusCounterId(final int counterId) { buffer.putInt(offset + CHANNEL_STATUS_INDICATOR_ID_OFFSET, counterId); return this; }
/** * Set channel status counter id field * * @param counterId field value * @return flyweight */ public SubscriptionReadyFlyweight channelStatusCounterId(final int counterId) { buffer.putInt(offset + CHANNEL_STATUS_INDICATOR_ID_OFFSET, counterId); return this; } }
/** * Set the position Id for the subscriber * * @param id for the subscriber position * @return flyweight */ public ImageBuffersReadyFlyweight subscriberPositionId(final int id) { buffer.putInt(offset + SUBSCRIBER_POSITION_ID_OFFSET, id); return this; }
/** * Set the stream id field * * @param streamId field value * @return flyweight */ public PublicationBuffersReadyFlyweight streamId(final int streamId) { buffer.putInt(offset + STREAM_ID_FIELD_OFFSET, streamId); return this; }
/** * Set the stream id field * * @param streamId field value * @return flyweight */ public PublicationMessageFlyweight streamId(final int streamId) { buffer.putInt(offset + STREAM_ID_FIELD_OFFSET, streamId); return this; }
/** * Set the session id field * * @param sessionId field value * @return flyweight */ public PublicationBuffersReadyFlyweight sessionId(final int sessionId) { buffer.putInt(offset + SESSION_ID_OFFSET, sessionId); return this; }
/** * set stream id field * * @param streamId field value * @return flyweight */ public ImageBuffersReadyFlyweight streamId(final int streamId) { buffer.putInt(offset + STREAM_ID_FIELD_OFFSET, streamId); return this; }
/** * Set counter id field * * @param counterId field value * @return flyweight */ public CounterUpdateFlyweight counterId(final int counterId) { buffer.putInt(offset + COUNTER_ID_OFFSET, counterId); return this; } }
/** * set stream id field * * @param streamId field value * @return flyweight */ public ImageMessageFlyweight streamId(final int streamId) { buffer.putInt(offset + STREAM_ID_FIELD_OFFSET, streamId); return this; }
/** * Set the stream id * * @param streamId the channel id * @return flyweight */ public SubscriptionMessageFlyweight streamId(final int streamId) { buffer.putInt(offset + STREAM_ID_OFFSET, streamId); return this; }
/** * set session id field * * @param sessionId field value * @return flyweight */ public ImageBuffersReadyFlyweight sessionId(final int sessionId) { buffer.putInt(offset + SESSION_ID_OFFSET, sessionId); return this; }
public TokenCodecEncoder tokenVersion(final int value) { buffer.putInt(offset + 12, value, java.nio.ByteOrder.LITTLE_ENDIAN); return this; }
public TokenCodecEncoder deprecated(final int value) { buffer.putInt(offset + 24, value, java.nio.ByteOrder.LITTLE_ENDIAN); return this; }
public FrameCodecEncoder irId(final int value) { buffer.putInt(offset + 0, value, java.nio.ByteOrder.LITTLE_ENDIAN); return this; }
public FrameCodecEncoder irVersion(final int value) { buffer.putInt(offset + 4, value, java.nio.ByteOrder.LITTLE_ENDIAN); return this; }
/** * Set the error code for the command. * * @param code for the error * @return flyweight */ public ErrorResponseFlyweight errorCode(final ErrorCode code) { buffer.putInt(offset + ERROR_CODE_OFFSET, code.value()); return this; }
/** * Create a new counter for the enumerated descriptor. * * @param countersManager for managing the underlying storage. * @return a new counter for the enumerated descriptor. */ public AtomicCounter newCounter(final CountersManager countersManager) { return countersManager.newCounter(label, SYSTEM_COUNTER_TYPE_ID, (buffer) -> buffer.putInt(0, id)); } }
/** * Fill the key buffer. * * @param keyBuffer containing the optional key for the counter. * @param keyOffset within the keyBuffer at which the key begins. * @param keyLength of the key in the keyBuffer. * @return flyweight */ public CounterMessageFlyweight keyBuffer(final DirectBuffer keyBuffer, final int keyOffset, final int keyLength) { buffer.putInt(KEY_LENGTH_OFFSET, keyLength); if (null != keyBuffer && keyLength > 0) { buffer.putBytes(keyBufferOffset(), keyBuffer, keyOffset, keyLength); } return this; }
/** * Fill the label buffer. * * @param labelBuffer containing the mandatory label for the counter. * @param labelOffset within the labelBuffer at which the label begins. * @param labelLength of the label in the labelBuffer. * @return flyweight */ public CounterMessageFlyweight labelBuffer( final DirectBuffer labelBuffer, final int labelOffset, final int labelLength) { buffer.putInt(labelOffset(), labelLength); buffer.putBytes(labelBufferOffset(), labelBuffer, labelOffset, labelLength); return this; }