Skip to content

Commit 8baf0a6

Browse files
committed
updating javadocs
1 parent 95aefce commit 8baf0a6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

server/src/main/java/org/elasticsearch/action/support/broadcast/node/TransportBroadcastByNodeAction.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
import org.elasticsearch.common.io.stream.Writeable;
4141
import org.elasticsearch.common.util.concurrent.EsExecutors;
4242
import org.elasticsearch.core.FixForMultiProject;
43+
import org.elasticsearch.core.Nullable;
4344
import org.elasticsearch.tasks.Task;
4445
import org.elasticsearch.tasks.TaskId;
4546
import org.elasticsearch.transport.AbstractTransportRequest;
@@ -70,6 +71,7 @@
7071
* @param <Request> the underlying client request
7172
* @param <Response> the response to the client request
7273
* @param <ShardOperationResult> per-shard operation results
74+
* @param <NodeContext> the optional node context created by createNodeContext and passed to shardOperation
7375
*/
7476
public abstract class TransportBroadcastByNodeAction<
7577
Request extends BroadcastRequest<Request>,
@@ -179,13 +181,14 @@ Response newResponse(
179181
* @param request the node-level request
180182
* @param shardRouting the shard on which to execute the operation
181183
* @param task the task for this node-level request
184+
* @param nodeContext the context created by {{@link #createNodeContext()}}
182185
* @param listener the listener to notify with the result of the shard-level operation
183186
*/
184187
protected abstract void shardOperation(
185188
Request request,
186189
ShardRouting shardRouting,
187190
Task task,
188-
NodeContext nodeContext,
191+
@Nullable NodeContext nodeContext,
189192
ActionListener<ShardOperationResult> listener
190193
);
191194

0 commit comments

Comments
 (0)