Fixes according to review. #2413
This commit is contained in:
parent
08ef942242
commit
0988101881
7 changed files with 20 additions and 20 deletions
|
|
@ -202,8 +202,8 @@ public class UntypedActorDocTestBase {
|
|||
ActorRef actorRef = system.actorOf(new Props(MyUntypedActor.class));
|
||||
//#gracefulStop
|
||||
try {
|
||||
Future<Boolean> stopped = gracefulStop(actorRef,
|
||||
Duration.create(5, TimeUnit.SECONDS), system);
|
||||
Future<Boolean> stopped =
|
||||
gracefulStop(actorRef, Duration.create(5, TimeUnit.SECONDS), system);
|
||||
Await.result(stopped, Duration.create(6, TimeUnit.SECONDS));
|
||||
// the actor has been stopped
|
||||
} catch (AskTimeoutException e) {
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@ public class HttpSample {
|
|||
public static void main(String[] args) {
|
||||
//#HttpExample
|
||||
// Create the actors. this can be done in a Boot class so you can
|
||||
// run the example in the MicroKernel. just add the three lines to below
|
||||
// your boot class.
|
||||
// run the example in the MicroKernel. Just add the three lines below
|
||||
// to your boot class.
|
||||
ActorSystem system = ActorSystem.create("some-system");
|
||||
final ActorRef httpTransformer = system.actorOf(new Props(HttpTransformer.class));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue