Skip to content

Commit

Permalink
checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
dbw9580 committed Nov 29, 2023
1 parent b7bec81 commit fec7441
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ public WorkerClusterView(Iterable<WorkerInfo> workers) {
mInstantCreated = Instant.now();
}

/**
* Finds a worker by its ID.
*
* @param workerIdentity the ID of the worker to find
* @return the worker info of the given worker, or none if the worker is not found
*/
public Optional<WorkerInfo> getWorkerById(WorkerIdentity workerIdentity) {
return Optional.ofNullable(
mWorkers.getFirstByField(INDEX_WORKER_ID, workerIdentity));
Expand Down

0 comments on commit fec7441

Please sign in to comment.