Deprecates status message based api #27503 (#27519)

* Deprecates status message based api #27503
* Deprecates actorRefWithAck for actorRefWithBackpressure
This commit is contained in:
Nicolas Vollmar 2019-09-10 11:59:19 +02:00 committed by Patrik Nordwall
parent aee0152da2
commit 751918e84c
34 changed files with 618 additions and 195 deletions

View file

@ -320,7 +320,7 @@ public class IntegrationDocTest extends AbstractJavaTest {
}
// #ask-actor
// #actorRefWithAck-actor
// #actorRefWithBackpressure-actor
enum Ack {
INSTANCE;
}
@ -381,7 +381,7 @@ public class IntegrationDocTest extends AbstractJavaTest {
.build();
}
}
// #actorRefWithAck-actor
// #actorRefWithBackpressure-actor
@SuppressWarnings("unchecked")
@Test
@ -399,8 +399,8 @@ public class IntegrationDocTest extends AbstractJavaTest {
}
@Test
public void actorRefWithAckExample() throws Exception {
// #actorRefWithAck
public void actorRefWithBackpressure() throws Exception {
// #actorRefWithBackpressure
Source<String, NotUsed> words = Source.from(Arrays.asList("hello", "hi"));
final TestKit probe = new TestKit(system);
@ -408,7 +408,7 @@ public class IntegrationDocTest extends AbstractJavaTest {
ActorRef receiver = system.actorOf(Props.create(AckingReceiver.class, probe.getRef()));
Sink<String, NotUsed> sink =
Sink.<String>actorRefWithAck(
Sink.<String>actorRefWithBackpressure(
receiver,
new StreamInitialized(),
Ack.INSTANCE,
@ -421,7 +421,7 @@ public class IntegrationDocTest extends AbstractJavaTest {
probe.expectMsg("hello");
probe.expectMsg("hi");
probe.expectMsg("Stream completed");
// #actorRefWithAck
// #actorRefWithBackpressure
}
@Test