Skip to content

Commit 7acfa5e

Browse files
JingGepnowojski
authored andcommitted
[hotfix][doc] fix typo in java doc.
1 parent d9fab76 commit 7acfa5e

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

flink-core/src/main/java/org/apache/flink/api/common/operators/MailboxExecutor.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030
import java.util.concurrent.RejectedExecutionException;
3131

3232
/**
33-
* {@link java.util.concurrent.Executor} like interface for an build around a mailbox-based
34-
* execution model. {@code MailboxExecutor} can also execute downstream messages of a mailbox by
35-
* yielding control from the task thread.
33+
* {@link java.util.concurrent.Executor} like interface for a build around a mailbox-based execution
34+
* model. {@code MailboxExecutor} can also execute downstream messages of a mailbox by yielding
35+
* control from the task thread.
3636
*
3737
* <p>All submission functions can be called from any thread and will enqueue the action for further
3838
* processing in a FIFO fashion.
@@ -218,7 +218,7 @@ void execute(
218218
}
219219

220220
/**
221-
* This methods starts running the command at the head of the mailbox and is intended to be used
221+
* This method starts running the command at the head of the mailbox and is intended to be used
222222
* by the mailbox thread to yield from a currently ongoing action to another command. The method
223223
* blocks until another command to run is available in the mailbox and must only be called from
224224
* the mailbox thread. Must only be called from the mailbox thread to not violate the
@@ -232,7 +232,7 @@ void execute(
232232
void yield() throws InterruptedException, FlinkRuntimeException;
233233

234234
/**
235-
* This methods attempts to run the command at the head of the mailbox. This is intended to be
235+
* This method attempts to run the command at the head of the mailbox. This is intended to be
236236
* used by the mailbox thread to yield from a currently ongoing action to another command. The
237237
* method returns true if a command was found and executed or false if the mailbox was empty.
238238
* Must only be called from the mailbox thread to not violate the single-threaded execution

flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/tasks/mailbox/MailboxDefaultAction.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ interface Suspension {
4242
}
4343

4444
/**
45-
* This context is a feedback interface for the default action to interact with the mailbox
46-
* execution. In particular it offers ways to signal that the execution of the default action
45+
* This controller is a feedback interface for the default action to interact with the mailbox
46+
* execution. In particular, it offers ways to signal that the execution of the default action
4747
* should be finished or temporarily suspended.
4848
*/
4949
@Internal

flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/tasks/mailbox/TaskMailbox.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
*
5757
* <p>A batch is created with {@link #createBatch()} and consumed with {@link #tryTakeFromBatch()}.
5858
* Note that there is no blocking {@code takeFromBatch} as batches can only be created and consumed
59-
* from the * mailbox thread.
59+
* from the mailbox thread.
6060
*
6161
* <p>Also note that a batch can only be created in the {@link MailboxProcessor#runMailboxLoop()}. A
6262
* batch must not be extended in any of the consuming methods as we may run into task input
@@ -125,7 +125,7 @@ public interface TaskMailbox {
125125
/**
126126
* Creates a batch of mails that can be taken with {@link #tryTakeFromBatch()}. The batch does
127127
* not affect {@link #tryTake(int)} and {@link #take(int)}; that is, they return the same mails
128-
* even if no batch would have been created.
128+
* even if no batch had been created.
129129
*
130130
* <p>The default batch is empty. Thus, this method must be invoked once before {@link
131131
* #tryTakeFromBatch()}.

0 commit comments

Comments
 (0)