public SampleCommand( IoSession session, TimeoutNotifyProducerConsumer<AbstractAsyncCommand> producer) :base(session, CommandCode.Test, producer) { }
public AbstractBlockCommand( IoSession session, CommandCode commandCode, TimeoutNotifyProducerConsumer<AbstractAsyncCommand> producer) :base(session, commandCode, producer) { Callback += BlockCommand_Callback; }
public AbstractBlockCommand( IoSession session, CommandCode commandCode, TimeoutNotifyProducerConsumer <AbstractAsyncCommand> producer) : base(session, commandCode, producer) { Callback += BlockCommand_Callback; }
protected AbstractAsyncCommand( IoSession session, CommandCode commandCode, TimeoutNotifyProducerConsumer <AbstractAsyncCommand> producer) { this.session = session; this.CommandCode = commandCode; this.producer = producer; this.ID = Guid.NewGuid().ToByteArray().ToBase64(); this.Version = MessageVersion.V1; }
public SampleCommand( IoSession session, TimeoutNotifyProducerConsumer <AbstractAsyncCommand> producer) : base(session, CommandCode.Test, producer) { }
public Heartbeat( IoSession session, TimeoutNotifyProducerConsumer <AbstractAsyncCommand> producer) : base(session, CommandCode.Heartbeat, producer) { }
public Authentication( IoSession session, TimeoutNotifyProducerConsumer <AbstractAsyncCommand> producer) : base(session, CommandCode.Authentication, producer) { }
public Register( IoSession session, TimeoutNotifyProducerConsumer<AbstractAsyncCommand> producer) : base(session, CommandCode.Register, producer) { }
public Authentication( IoSession session, TimeoutNotifyProducerConsumer<AbstractAsyncCommand> producer) : base(session, CommandCode.Authentication, producer) { }
public ListConnectors( IoSession session, TimeoutNotifyProducerConsumer<AbstractAsyncCommand> producer) : base(session, CommandCode.ListConnectors, producer) { }
public ListConnectors( IoSession session, TimeoutNotifyProducerConsumer <AbstractAsyncCommand> producer) : base(session, CommandCode.ListConnectors, producer) { }
public Heartbeat( IoSession session, TimeoutNotifyProducerConsumer<AbstractAsyncCommand> producer) : base(session, CommandCode.Heartbeat, producer) { }
public BaseConsumerTask(ConsumerContext context, int partitionId, int localCacheSize) { Context = context; PartitionId = partitionId; msgs = new BlockingQueue<IConsumerMessage>(localCacheSize); LeaseManager = ComponentLocator.Lookup<ILeaseManager<ConsumerLeaseKey>>(BuildConstants.CONSUMER); ConsumerNotifier = ComponentLocator.Lookup<IConsumerNotifier>(); EndpointClient = ComponentLocator.Lookup<IEndpointClient>(); EndpointManager = ComponentLocator.Lookup<IEndpointManager>(); MessageCodec = ComponentLocator.Lookup<IMessageCodec>(); SystemClockService = ComponentLocator.Lookup<ISystemClockService>(); Config = ComponentLocator.Lookup<ConsumerConfig>(); retryPolicy = ComponentLocator.Lookup<IMetaService>().FindRetryPolicyByTopicAndGroup( context.Topic.Name, context.GroupId); PullMessageResultMonitor = ComponentLocator.Lookup<IPullMessageResultMonitor>(); pullMessageTaskExecutor = new ProducerConsumer<BasePullMessagesTask>(int.MaxValue); pullMessageTaskExecutor.OnConsume += RunPullMessageTask; renewLeaseTaskExecutor = new TimeoutNotifyProducerConsumer<RenewLeaseTask>(int.MaxValue); renewLeaseTaskExecutor.OnConsume += RunRenewLeaseTask; }
public Register( IoSession session, TimeoutNotifyProducerConsumer <AbstractAsyncCommand> producer) : base(session, CommandCode.Register, producer) { }
public CommandHandler(TimeoutNotifyProducerConsumer<AbstractAsyncCommand> producer) { this.producer = producer; }
public CommandHandler(TimeoutNotifyProducerConsumer <AbstractAsyncCommand> producer) { this.producer = producer; }