=doc fix github link as in #19434

This commit is contained in:
Konrad Malawski 2016-01-14 00:35:47 +01:00
parent 5a18d43435
commit f46f9edb17
5 changed files with 15 additions and 21 deletions

View file

@ -13,10 +13,10 @@ import akka.japi.pf.ReceiveBuilder;
//#imports
//#my-actor
public class MyActor extends AbstractActor {
public class MyJavaActor extends AbstractActor {
private final LoggingAdapter log = Logging.getLogger(context().system(), this);
public MyActor() {
public MyJavaActor() {
receive(ReceiveBuilder.
match(String.class, s -> {
log.info("Received String message: {}", s);

View file

@ -21,21 +21,16 @@ import akka.util._
import scala.concurrent.duration._
import scala.concurrent.Await
object x {
//#my-actor
class MyActor extends Actor {
//#my-actor
class MyActor extends Actor {
val log = Logging(context.system, this)
def receive = {
case "test" => log.info("received test")
case _ => log.info("received unknown message")
}
}
//#my-actor
}
import x._
//#my-actor
final case class DoIt(msg: ImmutableMessage)
final case class Message(s: String)

View file

@ -8,12 +8,12 @@ import java.io.File
import _root_.akka.http.scaladsl.model.Uri
import _root_.akka.stream._
import _root_.akka.stream.scaladsl._
import _root_.akka.stream.stage.{GraphStage, GraphStageLogic, InHandler, OutHandler}
import _root_.akka.stream.testkit.{AkkaSpec, TestPublisher, TestSubscriber}
import _root_.akka.stream.stage.{ GraphStage, GraphStageLogic, InHandler, OutHandler }
import _root_.akka.stream.testkit.{ AkkaSpec, TestPublisher, TestSubscriber }
import scala.concurrent.duration._
import scala.concurrent.{ExecutionContext, Future, Promise}
import scala.util.{Failure, Random, Success, Try}
import scala.concurrent.{ ExecutionContext, Future, Promise }
import scala.util.{ Failure, Random, Success, Try }
class MigrationsScala extends AkkaSpec {

View file

@ -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`.
.. _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

View file

@ -1,2 +1 @@
//akka.loggers = ["akka.testkit.TestEventListener"]
akka.loggers = []
akka.loggers = ["akka.testkit.TestEventListener"]