public boolean submitAction(Action0 action){
  boolean submitted=true;
  Thread currentThread=Thread.currentThread();
  if (currentThread.equals(dutyThread)) {
    action.call();
  }
 else {
    submitted=actions.offer(action);
  }
  return submitted;
}

public boolean submitAction ( Action0 action ) { boolean submitted = true ; Thread currentThread = Thread . currentThread ( ) ; if ( currentThread . equals ( dutyThread ) ) { action . call ( ) ; } else { submitted = actions . offer ( action ) ; } return submitted ; }
submits an action0 to be run but the duty thread .
