[Java] Remove out of date comment. (#21073)

The semantic of `setName` API is changed, but the comment is out of date. This PR fixes it.
This commit is contained in:
Qing Wang 2021-12-20 20:07:59 +08:00 committed by GitHub
parent 33a45e55df
commit bd502e8bd5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,5 @@
package io.ray.api.call;
import io.ray.api.Ray;
import io.ray.api.options.ActorCreationOptions;
import io.ray.api.placementgroup.PlacementGroup;
import java.util.Map;
@ -14,9 +13,7 @@ public class BaseActorCreator<T extends BaseActorCreator> {
protected ActorCreationOptions.Builder builder = new ActorCreationOptions.Builder();
/**
* Set the actor name of a named actor. This named actor is only accessible from this job by this
* name via {@link Ray#getActor(java.lang.String)}. If you want create a named actor that is
* accessible from all jobs, use {@link BaseActorCreator#setGlobalName(java.lang.String)} instead.
* Set the actor name of a named actor.
*
* @param name The name of the named actor.
* @return self