Small tweaks to docs
Getting a couple of small tweaks out of the way
This commit is contained in:
parent
e495408627
commit
f447f8e73f
8 changed files with 44 additions and 32 deletions
|
|
@ -4,7 +4,6 @@
|
|||
package jdocs.actor;
|
||||
|
||||
//#imports
|
||||
|
||||
import akka.actor.TypedActor;
|
||||
import akka.actor.*;
|
||||
import akka.japi.*;
|
||||
|
|
@ -25,7 +24,6 @@ import akka.routing.RoundRobinGroup;
|
|||
import org.junit.Test;
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
||||
//#imports
|
||||
public class TypedActorDocTest extends AbstractJavaTest {
|
||||
Object someReference = null;
|
||||
ActorSystem system = null;
|
||||
|
|
@ -198,7 +196,7 @@ public class TypedActorDocTest extends AbstractJavaTest {
|
|||
}
|
||||
}
|
||||
|
||||
//#typed-router-types-1
|
||||
//#typed-router-types
|
||||
interface HasName {
|
||||
String name();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -39,12 +39,9 @@ import static akka.dispatch.Futures.reduce;
|
|||
//#imports6
|
||||
|
||||
//#imports7
|
||||
//#imports7
|
||||
|
||||
//#imports8
|
||||
import static akka.pattern.Patterns.after;
|
||||
import java.util.Arrays;
|
||||
//#imports8
|
||||
//#imports7
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ it will use its default dispatcher as the ``ExecutionContext``, or you can use t
|
|||
by the ``ExecutionContexts`` class to wrap ``Executors`` and ``ExecutorServices``, or even create your own.
|
||||
|
||||
.. includecode:: code/jdocs/future/FutureDocTest.java
|
||||
:include: imports1,imports7
|
||||
:include: imports1
|
||||
|
||||
.. includecode:: code/jdocs/future/FutureDocTest.java
|
||||
:include: diy-execution-context
|
||||
|
|
@ -256,7 +256,7 @@ After
|
|||
``akka.pattern.Patterns.after`` makes it easy to complete a ``Future`` with a value or exception after a timeout.
|
||||
|
||||
.. includecode:: code/jdocs/future/FutureDocTest.java
|
||||
:include: imports8
|
||||
:include: imports7
|
||||
|
||||
.. includecode:: code/jdocs/future/FutureDocTest.java
|
||||
:include: after
|
||||
|
|
|
|||
|
|
@ -291,7 +291,7 @@ of the command for which this ``deferAsync`` handler was called.
|
|||
|
||||
You can also call ``deferAsync`` with ``persist``.
|
||||
|
||||
.. includecode:: code/docs/persistence/LambdaPersistenceDocTest.java#defer-with-persist
|
||||
.. includecode:: code/jdocs/persistence/LambdaPersistenceDocTest.java#defer-with-persist
|
||||
|
||||
.. warning::
|
||||
The callback will not be invoked if the actor is restarted (or stopped) in between the call to
|
||||
|
|
|
|||
|
|
@ -249,7 +249,7 @@ with message flows:
|
|||
|
||||
* :meth:`public <T> List<T> receiveWhile(Duration max, Duration idle, Int messages, Function<Object, T> f)`
|
||||
|
||||
.. includecode:: code/docs/testkit/TestKitDocTest.java#test-receivewhile-full
|
||||
.. includecode:: code/jdocs/testkit/TestKitDocTest.java#test-receivewhile-full
|
||||
|
||||
Collect messages as long as
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue