+con #15157 Changed ClusterSharding.start to return the shardRegion
ActorRef #15209 * Changed ClusterSharding.start to return the ActorRef to the shardRegion (#15157) * Fixed indentation, and removed unused import * Test for new API * removed unused import - Moved barrier outside of the runon
This commit is contained in:
parent
bac96a3578
commit
619585c50e
4 changed files with 30 additions and 11 deletions
|
|
@ -4,7 +4,6 @@
|
|||
|
||||
package akka.contrib.pattern;
|
||||
|
||||
import java.util.Iterator;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import scala.concurrent.duration.Duration;
|
||||
|
|
@ -64,8 +63,8 @@ public class ClusterShardingTest {
|
|||
//#counter-extractor
|
||||
|
||||
//#counter-start
|
||||
ClusterSharding.get(system).start("Counter", Props.create(Counter.class),
|
||||
messageExtractor);
|
||||
ActorRef startedCounterRegion = ClusterSharding.get(system).start("Counter", Props.create(Counter.class),
|
||||
messageExtractor);
|
||||
//#counter-start
|
||||
|
||||
//#counter-usage
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue