public boolean startTimelineRequest(){
  return requestInFlight.compareAndSet(false,true);
}

public boolean startTimelineRequest ( ) { return requestInFlight . compareAndSet ( false , true ) ; }
returns true if a timeline request is not in flight , false otherwise . if true , a caller must later call finishtimelinerequest to remove the requestinflight lock .
