I doubt that many developers are using IEngine.broadcast, but I have
a specific need to send some messages which may be quicker than just
1 message per second.
Currently, IEngine.broadcast throws an exception if any broadcast
is within 1 second of a prior broadcast message. I am using this in order
to communicate between instances of Remote Live Server Strategy instances
so there isn't another mechanism available for me to use for inter-Strategy
communication within a single Account Login.
Unless this can be relaxed, then I will have to "bundle" multiple messages
into a single broadcast, which will greatly complicate my messaging design.
In that case I may have to "bundle" multiple messages into a single
broadcast.
In the exception below, a request was made 984 milliseconds after the prior
request, so the exception is thrown.
com.dukascopy.api.JFException: Broadcast min period exceeded : 984 / 1000
at com.dukascopy.api.impl.connect.JForexEngineImpl.broadcast(JForexEngineImpl.java:429)
What other undocumented restrictions are on IEngine.broadcast. What is the maximum
size of the topic and message strings?
Ideally, I would prefer that there not be a "throttling" restriction, but I realize you have designed
in the "throttling" to protect the server.
So I would prefer if I would be able to broadcast perhaps 4-5 messages per second in "bursts", although that would not be a sustained rate, and I won't be abusing the feature.
Thanks very much for considering this request.
HyperScalper