@Override
public ParticipantConfig updateParticipant(ParticipantId participantId,
ParticipantConfig.Delta participantDelta) {
ClusterId clusterId = clusterId();
HelixLock lock = _lockProvider.getLock(clusterId, Scope.participant(participantId));
boolean locked = lock.lock();
if (locked) {
try {
return _clusterAccessor.updateParticipant(participantId, participantDelta);
} finally {
lock.unlock();
}
}
return null;
}