Re: resequencer stream comparator camel

2017-04-28 Thread Moshe Recanati
Hi, Issue resolved by using batch and calculate value once entering it to queue On Fri, Apr 28, 2017 at 11:46 AM, Moshe Recanati wrote: > Hi, > I came to know that resequencer, stream with custom comparator requires > that the compare results will have no gap. > Since items

resequencer stream comparator camel

2017-04-28 Thread Moshe Recanati
Hi, I came to know that resequencer, stream with custom comparator requires that the compare results will have no gap. Since items entered and calculated dynamically I don't understand how I can make it happen. In most cases in the calculation will have gaps. Any other option to sort and prioritize

Re: Prioritize messages based on custom rules

2017-04-26 Thread Moshe Recanati
e in the correct order, eg what the sequence number > should be for each element. > > And when you have that then you can use that to assign truely unique > sequence numbers, that the Camel sequencer EIP uses. > > On Wed, Apr 26, 2017 at 7:27 PM, Moshe Recanati > wrote: >

Prioritize messages based on custom rules

2017-04-26 Thread Moshe Recanati
Hi, I would like to use Camel with resequencer in order prioritize two Java Objects based on custom rules. I thought about using stream and custom comparator however in most cases the objects are equal so Camel is ignoring them. Do you have an alternative to such requirement? Can I use batch proce

Using stream resequencer with Custom comparator

2017-04-25 Thread Moshe Recanati
Hi, I'm using stream resequencer with custom comparator. I'm having issue that some of the elements compared return 0 as they are equal in terms of sorting but different in content level. This cause a situation that these elements not pushed to the consumer. I tried to add timestamp to the elements