public interface NotifyHandler
Registering a handler to receive dispatch notifications is done by invoking
the RT_Consumer.setNotifyHandler(com.factset.rt.NotifyHandler)
method. The API invokes the
onNotify()
method when there are subscription or control messages
in the internal message queue. This signifies that the
RT_Consumer.dispatch()
method is ready to be called.
The onNotify
method is invoked by the internal API's
communication thread. To prevent blocking this thread, the
RT_Consumer.dispatch
should not be directly invoked within
onNotify
. If it is, an IllegalStateException
will be thrown. Instead, this method should be used to notify a separate
thread or place an event in an event queue.
RT_Consumer
Modifier and Type | Method and Description |
---|---|
void |
onNotify()
Invoked by an internal API thread when there are messages ready to be
dispatched.
|
void onNotify()
To register this NotfifyHandler
for dispatch notifications,
invoke the RT_Consumer.setNotifyHandler(com.factset.rt.NotifyHandler)
method.
The RT_Consumer.dispatch()
method must not be invoked from
onNotify
, nor should this method throw.