public void ResultReceived(PullMessageResultCommandV2 result) { if (result != null) { PullMessageCommandV2 pullMessageCommand = null; cmds.TryRemove(result.Header.CorrelationId, out pullMessageCommand); if (pullMessageCommand != null) { try { pullMessageCommand.OnResultReceived(result); } catch (Exception e) { log.Warn("Exception occurred while calling resultReceived", e); } } else { result.Release(); } } }
public void OnResultReceived(PullMessageResultCommandV2 ack) { m_future.Set(ack); }
public override void ResultReceived(PullMessageResultCommandV2 ack) { }
public override void ResultReceived(PullMessageResultCommandV2 ack) { if (ack.Offset != null) { strictlyOrderedConsumingStrategyConsumerTask.offset.WriteFullFence(ack.Offset); } }
private void AppendMsgToQueue(PullMessageResultCommandV2 ack, long correlationId) { List<TppConsumerMessageBatch> batches = ack.Batches; if (batches != null && batches.Count != 0) { ConsumerContext context = ConsumerNotifier.Find(correlationId); if (context != null) { Type bodyClazz = context.MessageClazz; List<IConsumerMessage> decodedMsgs = DecodeBatches(batches, bodyClazz, ack.Channel); msgs.AddAll(decodedMsgs); } else { log.Warn(string.Format("Can not find consumerContext(topic={0}, partition={1}, groupId={2}, sessionId={3})", Context.Topic.Name, PartitionId, Context.GroupId, Context.SessionId)); } } }
public abstract void ResultReceived(PullMessageResultCommandV2 ack);