* at least the first few examples
This commit is contained in:
parent
330893e2c1
commit
9c200e3a04
8 changed files with 57 additions and 7 deletions
|
|
@ -4,13 +4,15 @@
|
|||
|
||||
package jdocs.typed.tutorial_1;
|
||||
|
||||
/*
|
||||
//#print-refs
|
||||
package com.example
|
||||
|
||||
//#print-refs
|
||||
*/
|
||||
|
||||
import akka.actor.typed.PreRestart;
|
||||
import akka.actor.typed.SupervisorStrategy;
|
||||
import org.junit.ClassRule;
|
||||
import org.junit.Test;
|
||||
import org.scalatestplus.junit.JUnitSuite;
|
||||
|
||||
import akka.actor.testkit.typed.javadsl.TestKitJunitResource;
|
||||
import akka.actor.typed.PostStop;
|
||||
|
||||
// #print-refs
|
||||
|
|
|
|||
|
|
@ -4,6 +4,13 @@
|
|||
|
||||
package jdocs.typed.tutorial_2;
|
||||
|
||||
/*
|
||||
//#iot-app
|
||||
package com.example;
|
||||
|
||||
//#iot-app
|
||||
*/
|
||||
|
||||
// #iot-app
|
||||
import akka.actor.typed.ActorSystem;
|
||||
|
||||
|
|
|
|||
|
|
@ -4,6 +4,13 @@
|
|||
|
||||
package jdocs.typed.tutorial_2;
|
||||
|
||||
/*
|
||||
//#iot-supervisor
|
||||
package com.example;
|
||||
|
||||
//#iot-supervisor
|
||||
*/
|
||||
|
||||
// #iot-supervisor
|
||||
import akka.actor.typed.Behavior;
|
||||
import akka.actor.typed.PostStop;
|
||||
|
|
|
|||
|
|
@ -4,11 +4,17 @@
|
|||
|
||||
package jdocs.typed.tutorial_3.inprogress1;
|
||||
|
||||
import akka.actor.typed.ActorRef;
|
||||
/*
|
||||
//#read-protocol-1
|
||||
package com.example;
|
||||
|
||||
import java.util.Optional;
|
||||
//#read-protocol-1
|
||||
*/
|
||||
|
||||
// #read-protocol-1
|
||||
import akka.actor.typed.ActorRef;
|
||||
import java.util.Optional;
|
||||
|
||||
public class Device {
|
||||
|
||||
public interface Command {}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,13 @@
|
|||
|
||||
package typed.tutorial_1
|
||||
|
||||
/*
|
||||
//#print-refs
|
||||
package com.example
|
||||
|
||||
//#print-refs
|
||||
*/
|
||||
|
||||
import akka.actor.testkit.typed.scaladsl.ScalaTestWithActorTestKit
|
||||
import org.scalatest.wordspec.AnyWordSpecLike
|
||||
import akka.actor.typed.PostStop
|
||||
|
|
|
|||
|
|
@ -4,6 +4,13 @@
|
|||
|
||||
package typed.tutorial_2
|
||||
|
||||
/*
|
||||
//#iot-app
|
||||
package com.example
|
||||
|
||||
//#iot-app
|
||||
*/
|
||||
|
||||
//#iot-app
|
||||
import akka.actor.typed.ActorSystem
|
||||
|
||||
|
|
|
|||
|
|
@ -4,6 +4,13 @@
|
|||
|
||||
package typed.tutorial_2
|
||||
|
||||
/*
|
||||
//#iot-supervisor
|
||||
package com.example
|
||||
|
||||
//#iot-supervisor
|
||||
*/
|
||||
|
||||
//#iot-supervisor
|
||||
import akka.actor.typed.Behavior
|
||||
import akka.actor.typed.PostStop
|
||||
|
|
|
|||
|
|
@ -4,6 +4,13 @@
|
|||
|
||||
package typed.tutorial_3
|
||||
|
||||
/*
|
||||
//#read-protocol-1
|
||||
package com.example
|
||||
|
||||
//#read-protocol-1
|
||||
*/
|
||||
|
||||
import akka.actor.typed.PostStop
|
||||
import akka.actor.typed.Signal
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue