=doc fix github link as in #19434
This commit is contained in:
parent
5a18d43435
commit
f46f9edb17
5 changed files with 15 additions and 21 deletions
|
|
@ -13,10 +13,10 @@ import akka.japi.pf.ReceiveBuilder;
|
||||||
//#imports
|
//#imports
|
||||||
|
|
||||||
//#my-actor
|
//#my-actor
|
||||||
public class MyActor extends AbstractActor {
|
public class MyJavaActor extends AbstractActor {
|
||||||
private final LoggingAdapter log = Logging.getLogger(context().system(), this);
|
private final LoggingAdapter log = Logging.getLogger(context().system(), this);
|
||||||
|
|
||||||
public MyActor() {
|
public MyJavaActor() {
|
||||||
receive(ReceiveBuilder.
|
receive(ReceiveBuilder.
|
||||||
match(String.class, s -> {
|
match(String.class, s -> {
|
||||||
log.info("Received String message: {}", s);
|
log.info("Received String message: {}", s);
|
||||||
|
|
@ -21,21 +21,16 @@ import akka.util._
|
||||||
import scala.concurrent.duration._
|
import scala.concurrent.duration._
|
||||||
import scala.concurrent.Await
|
import scala.concurrent.Await
|
||||||
|
|
||||||
object x {
|
//#my-actor
|
||||||
|
class MyActor extends Actor {
|
||||||
//#my-actor
|
|
||||||
class MyActor extends Actor {
|
|
||||||
val log = Logging(context.system, this)
|
val log = Logging(context.system, this)
|
||||||
|
|
||||||
def receive = {
|
def receive = {
|
||||||
case "test" => log.info("received test")
|
case "test" => log.info("received test")
|
||||||
case _ => log.info("received unknown message")
|
case _ => log.info("received unknown message")
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
//#my-actor
|
|
||||||
}
|
}
|
||||||
import x._
|
//#my-actor
|
||||||
|
|
||||||
final case class DoIt(msg: ImmutableMessage)
|
final case class DoIt(msg: ImmutableMessage)
|
||||||
final case class Message(s: String)
|
final case class Message(s: String)
|
||||||
|
|
|
||||||
|
|
@ -8,12 +8,12 @@ import java.io.File
|
||||||
import _root_.akka.http.scaladsl.model.Uri
|
import _root_.akka.http.scaladsl.model.Uri
|
||||||
import _root_.akka.stream._
|
import _root_.akka.stream._
|
||||||
import _root_.akka.stream.scaladsl._
|
import _root_.akka.stream.scaladsl._
|
||||||
import _root_.akka.stream.stage.{GraphStage, GraphStageLogic, InHandler, OutHandler}
|
import _root_.akka.stream.stage.{ GraphStage, GraphStageLogic, InHandler, OutHandler }
|
||||||
import _root_.akka.stream.testkit.{AkkaSpec, TestPublisher, TestSubscriber}
|
import _root_.akka.stream.testkit.{ AkkaSpec, TestPublisher, TestSubscriber }
|
||||||
|
|
||||||
import scala.concurrent.duration._
|
import scala.concurrent.duration._
|
||||||
import scala.concurrent.{ExecutionContext, Future, Promise}
|
import scala.concurrent.{ ExecutionContext, Future, Promise }
|
||||||
import scala.util.{Failure, Random, Success, Try}
|
import scala.util.{ Failure, Random, Success, Try }
|
||||||
|
|
||||||
class MigrationsScala extends AkkaSpec {
|
class MigrationsScala extends AkkaSpec {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,5 +12,5 @@ The support is not enabled automatically, but must be explicitly requested.
|
||||||
For enabling message encoding/decoding with :ref:`Routing DSL <http-high-level-server-side-api>` see the :ref:`CodingDirectives`.
|
For enabling message encoding/decoding with :ref:`Routing DSL <http-high-level-server-side-api>` see the :ref:`CodingDirectives`.
|
||||||
|
|
||||||
.. _HTTP spec: http://tools.ietf.org/html/rfc7231#section-3.1.2.1
|
.. _HTTP spec: http://tools.ietf.org/html/rfc7231#section-3.1.2.1
|
||||||
.. _akka.http.scaladsl.coding: https://github.com/akka/akka/tree/release-2.3-dev/akka-http/src/main/scala/akka/http/scaladsl/coding
|
.. _akka.http.scaladsl.coding: @github@/akka-http/src/main/scala/akka/http/scaladsl/coding
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1 @@
|
||||||
//akka.loggers = ["akka.testkit.TestEventListener"]
|
akka.loggers = ["akka.testkit.TestEventListener"]
|
||||||
akka.loggers = []
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue