public boolean startThread() {
   if (threadStarted.compareAndSet(false, true)) {
     thread.start();
     return true;
   }
   return false;
  }
A replica thread is responsible for handling replication for a set of partitions assigned to it
ambry-replication/src/main/java/com/github/ambry/replication/ReplicaThread.java