Exemplo n.º 1
0
  /**
   * start work
   *
   * @param e workEvent
   */
  @Override
  public void workStarted(WorkEvent e) {
    if (e.getType() != WorkEvent.WORK_STARTED) fail("Wrong started type");

    if (callbackCount != null) {
      synchronized (this) {
        callbackCount.setStartCount(callbackCount.getStartCount() + 1);
      }
    }

    super.workStarted(e);
  }