private void CheckLimitsOnDequeue(BoltConnection connection) { Channel channel = connection.Channel(); if (_queueSize <= _lowWatermark && !channel.config().AutoRead) { if (_log != null) { _log.warn("Channel [%s]: consumed messages on the worker queue below %d, auto-read is being enabled.", channel.remoteAddress(), _lowWatermark); } channel.config().AutoRead = true; } }
private void CheckLimitsOnEnqueue(BoltConnection connection) { Channel channel = connection.Channel(); if (_queueSize > _highWatermark && channel.config().AutoRead) { if (_log != null) { _log.warn("Channel [%s]: client produced %d messages on the worker queue, auto-read is being disabled.", channel.remoteAddress(), _queueSize); } channel.config().AutoRead = false; } }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void channelShouldReturnBoltRawChannel() public virtual void ChannelShouldReturnBoltRawChannel() { BoltConnection connection = NewConnection(); assertEquals(_boltChannel.rawChannel(), connection.Channel()); }