Kite ticker in thread in JAVA

y_sravan
in python, we have the option to have threaded ticker
KiteTicker.connect(threaded=True)
how to achieve same in JAVA? any ideas?

Thanks
  • sujith
    One of the ways is to create a new thread inside onTicks.
  • y_sravan
    @sujith, as ticks are frequent and event based, if we create new thread on each onTicks callback would be too heavy I think.
    why KiteTicker class do not have threaded model in JAVA? any particular reason?
  • sujith
    You may run the whole ticker inside the secondary thread or run a parallel thread where you pass incoming ticks. It totally depends on the setup and what you are trying to achieve.
Sign In or Register to comment.