BlockedNamespaces extends DistributedData<ORSet<String>> { public static BlockedNamespaces of(final ActorSystem system) { return Provider.INSTANCE.get(system); } private  BlockedNamespaces(final DistributedDataConfig config, final ActorSystem system); static BlockedNamespaces of(final ActorSystem system); static BlockedNamespaces create(final DistributedDataConfig config, final ActorSystem system); CompletionStage<Boolean> contains(final String namespace); CompletionStage<Void> add(final String namespace); CompletionStage<Void> remove(final String namespace); static final String CLUSTER_ROLE; static final String ACTOR_NAME; }
@Test public void startWithDefaultConfig() throws Exception { testCRUD(BlockedNamespaces.of(actorSystem), actorSystem); }
@Test public void startSeveralTimes() throws Exception { final Supplier<BlockedNamespaces> blockedNamespacesSupplier = () -> BlockedNamespaces.of(actorSystem); for (int i = 0; i < 10; ++i) { blockedNamespacesSupplier.get(); } testCRUD(blockedNamespacesSupplier.get(), actorSystem); }