|
From: Christoph J. <chr...@ma...> - 2021-07-27 09:14:11
|
Hi, there is no default limit. It has to be configured either in the code (watermark queue) or config (MaxScheduledWriteRequests). Cheers, Chris. On 27.07.21 05:51, Ajit Gautam wrote: > Hi Chris, > > Thanks for your reply. > Is there any default limit available in Quickfix/J for incoming or outgoing messages. > > I am planning to use Quickfix/J libraries and packages to build my own camel project. So, wanted > to know about default throttle limit. > > > Regards > Ajit Gautam > > On Tue, Jul 27, 2021, 04:20 Christoph John via Quickfixj-users > <qui...@li... <mailto:qui...@li...>> wrote: > > QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ > QuickFIX/J <http://www.quickfixj.org/documentation/QuickFIX/J> Support: > http://www.quickfixj.org/support/ <http://www.quickfixj.org/support/> > > > Hi, > > please always reply to the group. Other users might have the same problem/question now or in > the future. > > For incoming messages you can pass a high and a low watermark queue limit when constructing your > connector. > If the high limit is reached the reads from the socket will be suspended and if the low limit is > reached, reads from the socket will be resumed. Of course if the socket buffer will overflow the > connection could be terminated. > > Example: > ThreadedSocketAcceptor.newBuilder() > .withApplication( acceptorApplication ) > .withMessageStoreFactory( messageStoreFactory ) > .withSettings( settings ) > .withLogFactory( fileLog ) > .withMessageFactory( messageFactory ) > .withQueueWatermarks( LOW_WATERMARK, HIGH_WATERMARK > ).build(); > > For outgoing messages there is the setting MaxScheduledWriteRequests. > https://www.quickfixj.org/usermanual/2.3.0/usage/configuration.html > <https://www.quickfixj.org/usermanual/2.3.0/usage/configuration.html> > If there are more than the configured write requests, the session is disconnected. So this is no > real throttling per se but does the trick in most cases. > > Cheers, > Chris. > > > > On 26.07.21 16:36, Ajit Gautam wrote: > > Hi Chris, > > > > I want limit for incoming message. > > > > It would be good to know if outgoing stream also has some configuration throttle limit. > > > > > > Regards > > Ajit Gautam > > > > On Mon, Jul 26, 2021, 16:44 Christoph John <chr...@ma... > <mailto:chr...@ma...> > > <mailto:chr...@ma... <mailto:chr...@ma...>>> wrote: > > > > Hi, > > > > for incoming or outgoing messages?? > > > > Cheers, > > Chris. > > > > On 26.07.21 13:11, Ajit Gautam wrote: > >> QuickFIX/J Documentation:http://www.quickfixj.org/documentation/ > <http://www.quickfixj.org/documentation/> <http://www.quickfixj.org/documentation/ > <http://www.quickfixj.org/documentation/>> > >> QuickFIX/J Support:http://www.quickfixj.org/support/ > <http://www.quickfixj.org/support/> <http://www.quickfixj.org/support/ > <http://www.quickfixj.org/support/>> > >> > >> > >> > >> Hi, > >> > >> Is there any configuration available for setting the throttle limit in Quickfix Java? > >> > >> Also, is there any max throttle limit in Quickfix Java. > >> > >> Regards > >> Ajit Gautam > > > > -- > Christoph John > Software Engineering > T +49 241 557080-28 > chr...@ma... <mailto:chr...@ma...> > > MACD GmbH > Oppenhoffallee 103 > 52066 Aachen, Germany > www.macd.com <http://www.macd.com> > > Amtsgericht Aachen: HRB 8151 > Ust.-Id: DE 813021663 > Geschäftsführer: George Macdonald > > > > _______________________________________________ > Quickfixj-users mailing list > Qui...@li... <mailto:Qui...@li...> > https://lists.sourceforge.net/lists/listinfo/quickfixj-users > <https://lists.sourceforge.net/lists/listinfo/quickfixj-users> > -- Christoph John Software Engineering T +49 241 557080-28 chr...@ma... MACD GmbH Oppenhoffallee 103 52066 Aachen, Germany www.macd.com Amtsgericht Aachen: HRB 8151 Ust.-Id: DE 813021663 Geschäftsführer: George Macdonald |