示例#1
0
  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);
                  }
                });
      }
    }
  }
示例#2
0
  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);
                  }
                });
      }
    }
  }