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)); }
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)); }