Fix typos (#28326)
This commit is contained in:
parent
be5a17aeae
commit
10e61e816f
12 changed files with 12 additions and 12 deletions
|
|
@ -260,7 +260,7 @@ All wire protocol changes that may concern rolling upgrades should be documented
|
||||||
## Protobuf
|
## Protobuf
|
||||||
|
|
||||||
Akka includes a shaded version of protobuf `3.9.0` that is used for internal communication. To generate files
|
Akka includes a shaded version of protobuf `3.9.0` that is used for internal communication. To generate files
|
||||||
run `protobufGenerate`. The generated files are put in the `src/main/java` of each project and need to be commited.
|
run `protobufGenerate`. The generated files are put in the `src/main/java` of each project and need to be committed.
|
||||||
The generated files are automatically transformed to use the shaded version of protobuf.
|
The generated files are automatically transformed to use the shaded version of protobuf.
|
||||||
|
|
||||||
Generation depends on protoc `3.9.0` being on the path. Old versions of
|
Generation depends on protoc `3.9.0` being on the path. Old versions of
|
||||||
|
|
|
||||||
|
|
@ -193,7 +193,7 @@ class ResizerSpec extends AkkaSpec(ResizerSpec.config) with DefaultTimeout with
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 2 more should go thru without triggering more
|
// 2 more should go through without triggering more
|
||||||
loop(2, 200 millis)
|
loop(2, 200 millis)
|
||||||
routeeSize(router) should ===(resizer.lowerBound)
|
routeeSize(router) should ===(resizer.lowerBound)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ class SimpleDnsCache extends Dns with PeriodicCacheCleanup with NoSerializationV
|
||||||
* To get Srv or just one type use DnsProtocol
|
* To get Srv or just one type use DnsProtocol
|
||||||
*
|
*
|
||||||
* This method is deprecated and involves a copy from the new protocol to
|
* This method is deprecated and involves a copy from the new protocol to
|
||||||
* remain compatable
|
* remain compatible
|
||||||
*/
|
*/
|
||||||
@silent("deprecated")
|
@silent("deprecated")
|
||||||
override def cached(name: String): Option[Dns.Resolved] = {
|
override def cached(name: String): Option[Dns.Resolved] = {
|
||||||
|
|
|
||||||
|
|
@ -419,7 +419,7 @@ private[typed] object ClusterReceptionist extends ReceptionistBehaviorProvider {
|
||||||
|
|
||||||
Behaviors.receive[Command] { (_, msg) =>
|
Behaviors.receive[Command] { (_, msg) =>
|
||||||
msg match {
|
msg match {
|
||||||
// support two heterogenous types of messages without union types
|
// support two heterogeneous types of messages without union types
|
||||||
case cmd: InternalCommand => onInternalCommand(cmd)
|
case cmd: InternalCommand => onInternalCommand(cmd)
|
||||||
case cmd: Command => onCommand(cmd)
|
case cmd: Command => onCommand(cmd)
|
||||||
case _ => Behaviors.unhandled
|
case _ => Behaviors.unhandled
|
||||||
|
|
|
||||||
|
|
@ -79,7 +79,7 @@ A snapshot store plugin can be activated with the following minimal configuratio
|
||||||
|
|
||||||
The snapshot store instance is an actor so the methods corresponding to requests from persistent actors
|
The snapshot store instance is an actor so the methods corresponding to requests from persistent actors
|
||||||
are executed sequentially. It may delegate to asynchronous libraries, spawn futures, or delegate to other
|
are executed sequentially. It may delegate to asynchronous libraries, spawn futures, or delegate to other
|
||||||
actors to achive parallelism.
|
actors to achieve parallelism.
|
||||||
|
|
||||||
The snapshot store plugin class must have a constructor with one of these signatures:
|
The snapshot store plugin class must have a constructor with one of these signatures:
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -170,7 +170,7 @@ at a rate that is faster than the stream can consume. You should consider using
|
||||||
if you want a backpressured actor interface.
|
if you want a backpressured actor interface.
|
||||||
|
|
||||||
The stream can be completed successfully by sending `akka.actor.Status.Success` to the actor reference.
|
The stream can be completed successfully by sending `akka.actor.Status.Success` to the actor reference.
|
||||||
If the content is `akka.stream.CompletionStrategy.immediately` the completion will be signaled immidiately.
|
If the content is `akka.stream.CompletionStrategy.immediately` the completion will be signaled immediately.
|
||||||
If the content is `akka.stream.CompletionStrategy.draining` already buffered elements will be signaled before siganling completion.
|
If the content is `akka.stream.CompletionStrategy.draining` already buffered elements will be signaled before siganling completion.
|
||||||
Any other content will be ignored and fall back to the draining behaviour.
|
Any other content will be ignored and fall back to the draining behaviour.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ public class BlockingActor extends AbstractBehavior<Integer> {
|
||||||
Integer.class,
|
Integer.class,
|
||||||
i -> {
|
i -> {
|
||||||
// DO NOT DO THIS HERE: this is an example of incorrect code,
|
// DO NOT DO THIS HERE: this is an example of incorrect code,
|
||||||
// better alternatives are described futher on.
|
// better alternatives are described further on.
|
||||||
|
|
||||||
// block for 5 seconds, representing blocking I/O, etc
|
// block for 5 seconds, representing blocking I/O, etc
|
||||||
Thread.sleep(5000);
|
Thread.sleep(5000);
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ object BlockingActor {
|
||||||
def apply(): Behavior[Int] =
|
def apply(): Behavior[Int] =
|
||||||
Behaviors.receiveMessage { i =>
|
Behaviors.receiveMessage { i =>
|
||||||
// DO NOT DO THIS HERE: this is an example of incorrect code,
|
// DO NOT DO THIS HERE: this is an example of incorrect code,
|
||||||
// better alternatives are described futher on.
|
// better alternatives are described further on.
|
||||||
|
|
||||||
//block for 5 seconds, representing blocking I/O, etc
|
//block for 5 seconds, representing blocking I/O, etc
|
||||||
Thread.sleep(5000)
|
Thread.sleep(5000)
|
||||||
|
|
|
||||||
|
|
@ -131,7 +131,7 @@ import akka.actor.typed.ActorRef
|
||||||
* Run the given callback. Callbacks are run sequentially.
|
* Run the given callback. Callbacks are run sequentially.
|
||||||
*
|
*
|
||||||
* @tparam NewState The type of the state after the event is persisted, when not specified will be the same as `State`
|
* @tparam NewState The type of the state after the event is persisted, when not specified will be the same as `State`
|
||||||
* but if a known subtype of `State` is expected that can be specified instead (preferrably by
|
* but if a known subtype of `State` is expected that can be specified instead (preferably by
|
||||||
* explicitly typing the lambda parameter like so: `thenRun((SubState state) -> { ... })`).
|
* explicitly typing the lambda parameter like so: `thenRun((SubState state) -> { ... })`).
|
||||||
* If the state is not of the expected type an [[java.lang.ClassCastException]] is thrown.
|
* If the state is not of the expected type an [[java.lang.ClassCastException]] is thrown.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ final class SignalHandlerBuilder[State] {
|
||||||
private var handler: PartialFunction[(State, Signal), Unit] = PartialFunction.empty
|
private var handler: PartialFunction[(State, Signal), Unit] = PartialFunction.empty
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* If the behavior recieves a signal of type `T`, `callback` is invoked with the signal instance as input.
|
* If the behavior receives a signal of type `T`, `callback` is invoked with the signal instance as input.
|
||||||
*/
|
*/
|
||||||
def onSignal[T <: Signal](signalType: Class[T], callback: BiConsumer[State, T]): SignalHandlerBuilder[State] = {
|
def onSignal[T <: Signal](signalType: Class[T], callback: BiConsumer[State, T]): SignalHandlerBuilder[State] = {
|
||||||
val newPF: PartialFunction[(State, Signal), Unit] = {
|
val newPF: PartialFunction[(State, Signal), Unit] = {
|
||||||
|
|
|
||||||
|
|
@ -579,7 +579,7 @@ object Source {
|
||||||
* The stream will complete with failure if a message is sent before the acknowledgement has been replied back.
|
* The stream will complete with failure if a message is sent before the acknowledgement has been replied back.
|
||||||
*
|
*
|
||||||
* The stream can be completed successfully by sending the actor reference a [[akka.actor.Status.Success]].
|
* The stream can be completed successfully by sending the actor reference a [[akka.actor.Status.Success]].
|
||||||
* If the content is [[akka.stream.CompletionStrategy.immediately]] the completion will be signaled immidiately,
|
* If the content is [[akka.stream.CompletionStrategy.immediately]] the completion will be signaled immediately,
|
||||||
* otherwise if the content is [[akka.stream.CompletionStrategy.draining]] (or anything else)
|
* otherwise if the content is [[akka.stream.CompletionStrategy.draining]] (or anything else)
|
||||||
* already buffered element will be signaled before siganling completion.
|
* already buffered element will be signaled before siganling completion.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -710,7 +710,7 @@ object Source {
|
||||||
* The stream will complete with failure if a message is sent before the acknowledgement has been replied back.
|
* The stream will complete with failure if a message is sent before the acknowledgement has been replied back.
|
||||||
*
|
*
|
||||||
* The stream can be completed successfully by sending the actor reference a [[akka.actor.Status.Success]].
|
* The stream can be completed successfully by sending the actor reference a [[akka.actor.Status.Success]].
|
||||||
* If the content is [[akka.stream.CompletionStrategy.immediately]] the completion will be signaled immidiately,
|
* If the content is [[akka.stream.CompletionStrategy.immediately]] the completion will be signaled immediately,
|
||||||
* otherwise if the content is [[akka.stream.CompletionStrategy.draining]] (or anything else)
|
* otherwise if the content is [[akka.stream.CompletionStrategy.draining]] (or anything else)
|
||||||
* already buffered element will be signaled before siganling completion.
|
* already buffered element will be signaled before siganling completion.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue