Wrap long lines, for pdf
This commit is contained in:
parent
7c1ab68263
commit
95366cb585
27 changed files with 108 additions and 67 deletions
|
|
@ -161,7 +161,8 @@ public class UntypedActorDocTest {
|
|||
//#system-actorOf
|
||||
// ActorSystem is a heavy object: create only one per application
|
||||
final ActorSystem system = ActorSystem.create("MySystem");
|
||||
final ActorRef myActor = system.actorOf(Props.create(MyUntypedActor.class), "myactor");
|
||||
final ActorRef myActor = system.actorOf(Props.create(MyUntypedActor.class),
|
||||
"myactor");
|
||||
//#system-actorOf
|
||||
try {
|
||||
new JavaTestKit(system) {
|
||||
|
|
@ -238,7 +239,8 @@ public class UntypedActorDocTest {
|
|||
//#creating-indirectly
|
||||
|
||||
final ActorRef myActor = getContext().actorOf(
|
||||
Props.create(DependencyInjector.class, applicationContext, "MyActor"), "myactor3");
|
||||
Props.create(DependencyInjector.class, applicationContext, "MyActor"),
|
||||
"myactor3");
|
||||
//#creating-indirectly
|
||||
new JavaTestKit(system) {
|
||||
{
|
||||
|
|
|
|||
|
|
@ -23,8 +23,8 @@ public class MyDurableMessageQueue extends DurableMessageQueueWithSerialization
|
|||
private final QueueStorage storage = new QueueStorage();
|
||||
// A real-world implementation would use configuration to set the last
|
||||
// three parameters below
|
||||
private final CircuitBreaker breaker = CircuitBreaker.create(system().scheduler(), 5,
|
||||
Duration.create(30, "seconds"), Duration.create(1, "minute"));
|
||||
private final CircuitBreaker breaker = CircuitBreaker.create(system().scheduler(),
|
||||
5, Duration.create(30, "seconds"), Duration.create(1, "minute"));
|
||||
|
||||
@Override
|
||||
public void enqueue(ActorRef receiver, final Envelope envelope) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue