Skip to content

Commit

Permalink
Fix configuration metadata docs
Browse files Browse the repository at this point in the history
Signed-off-by: Tomas Langer <[email protected]>
  • Loading branch information
tomas-langer committed Sep 27, 2024
1 parent 5065977 commit 64e7c08
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
4 changes: 4 additions & 0 deletions all/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1000,6 +1000,10 @@
<groupId>io.helidon.webserver</groupId>
<artifactId>helidon-webserver-service-common</artifactId>
</dependency>
<dependency>
<groupId>io.helidon.webserver</groupId>
<artifactId>helidon-webserver-concurrency-limits</artifactId>
</dependency>
<dependency>
<groupId>io.helidon.webserver.testing.junit5</groupId>
<artifactId>helidon-webserver-testing-junit5</artifactId>
Expand Down
5 changes: 5 additions & 0 deletions bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1308,6 +1308,11 @@
<artifactId>helidon-webserver-service-common</artifactId>
<version>${helidon.version}</version>
</dependency>
<dependency>
<groupId>io.helidon.webserver</groupId>
<artifactId>helidon-webserver-concurrency-limits</artifactId>
<version>${helidon.version}</version>
</dependency>
<dependency>
<groupId>io.helidon.webserver.testing.junit5</groupId>
<artifactId>helidon-webserver-testing-junit5</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class BasicLimit implements Limit, SemaphoreLimit, RuntimeType.Api<BasicL
* Default limit, meaning unlimited execution.
*/
public static final int DEFAULT_LIMIT = 0;
static final String TYPE = "semaphore";
static final String TYPE = "basic";

private final BasicLimitConfig config;
private final LimiterHandler handler;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,14 @@

import io.helidon.builder.api.Option;
import io.helidon.builder.api.Prototype;
import io.helidon.common.concurrency.limits.spi.LimitProvider;

/**
* Configuration of {@link BasicLimit}.
*/
@Prototype.Blueprint
@Prototype.Configured(value = BasicLimit.TYPE, root = false)
@Prototype.Provides(LimitProvider.class)
interface BasicLimitConfigBlueprint extends Prototype.Factory<BasicLimit> {
/**
* Number of permit to allow.
Expand Down

0 comments on commit 64e7c08

Please sign in to comment.