Ejemplo n.º 1
0
        public FetchResponse Fetch(string topic, int partition, int correlationId, string clientId, long offset, int maxBytes)
        {
            FetchRequest fetchRequest = new FetchRequest(correlationId, clientId);

            fetchRequest.AddTopic(topic, partition, offset, maxBytes);
            return(Fetch(fetchRequest));
        }
Ejemplo n.º 2
0
        public FetchResponse Fetch(string topic, int partition, int correlationId, string clientId, long offset, int maxBytes, bool fromStart)
        {
            if (fromStart)
            {
                offset = OffsetRequest.LatestTime;
            }
            FetchRequest fetchRequest = new FetchRequest(correlationId, clientId);

            fetchRequest.AddTopic(topic, partition, offset, maxBytes);
            return(Fetch(fetchRequest));
        }