private void notifyTraderActivity(final long timestamp) { synchronized (_subscribers) { for (final LocalTraderEventSubscriber s : _subscribers) { s.getHandler() .post( new Runnable() { @Override public void run() { s.onLtTraderActicityNotification(timestamp); } }); } } }
private void notifyError(final int errorCode) { synchronized (_subscribers) { for (final LocalTraderEventSubscriber s : _subscribers) { s.getHandler() .post( new Runnable() { @Override public void run() { s.onLtError(errorCode); } }); } } }