ulfsaar
ulfsaar

Reputation: 1

Disruptor EventReleaser.release() method

Disruptor EventReleaser.release() method in Disruptor 3.3.6 com.lmax.disruptor.WorkProcessor.

I can't understand the method sequence.set(Long.MAX_VALUE). Can anyone explain in detail what is the purpose of this method?

Upvotes: 0

Views: 86

Answers (1)

bachden
bachden

Reputation: 461

I found an anwser in disruptor's google group.

It match to my test, when you don't use EventReleaser, ringbuffer will be exhausted, so the producers stuck at the next() method.

Upvotes: 1

Related Questions