public static ReadOnlySequence <byte> NewSeek(long consumerId, long requestId, long timestamp) { var seek = new CommandSeek { ConsumerId = (ulong)consumerId, RequestId = (ulong)requestId, MessagePublishTime = (ulong)timestamp }; return(Serializer.Serialize(seek.ToBaseCommand())); }
public static ReadOnlySequence <byte> NewSeek(long consumerId, long requestId, long ledgerId, long entryId, long[] ackSet) { var seek = new CommandSeek { ConsumerId = (ulong)consumerId, RequestId = (ulong)requestId }; var messageId = new MessageIdData { ledgerId = (ulong)ledgerId, entryId = (ulong)entryId, AckSets = ackSet }; seek.MessageId = messageId; return(Serializer.Serialize(seek.ToBaseCommand())); }