Skip to content

Commit

Permalink
Merge pull request #215 from quarkiverse/feature/doc-upd
Browse files Browse the repository at this point in the history
Updated doc
  • Loading branch information
kjeldpaw authored Oct 16, 2024
2 parents 1d783cc + c045fd8 commit e071948
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
17 changes: 13 additions & 4 deletions docs/modules/ROOT/pages/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ For instance, with Maven, add the following dependency to your POM file:
----
<dependency>
<groupId>io.quarkiverse.reactivemessaging.nats-jetstream</groupId>
<artifactId>quarkus-reactive-messaging-nats-jetstream</artifactId>
<artifactId>quarkus-messaging-nats-jetstream</artifactId>
<version>{project-version}</version>
</dependency>
----
Expand Down Expand Up @@ -100,11 +100,20 @@ quarkus.messaging.nats.connection-backoff,Back-off delay between to attempt to r
[format="csv",cols="2"]
|======
quarkus.messaging.nats.jet-stream.auto-configure,Autoconfigure stream and subjects based on channel configuration
quarkus.messaging.nats.jet-stream.replicas,The number of replicas a message must be stored. Default value is 1
quarkus.messaging.nats.jet-stream.storage-type,The storage type for stream data (File or Memory)
quarkus.messaging.nats.jet-stream.retention-policy,Declares the retention policy for the stream (Limits or Interest)
quarkus.messaging.nats.jet-stream.streams[i].replicas,The number of replicas a message must be stored. Default value is 1
quarkus.messaging.nats.jet-stream.streams[i].storage-type,The storage type for stream data (File or Memory)
quarkus.messaging.nats.jet-stream.streams[i].retention-policy,Declares the retention policy for the stream (Limits or Interest)
quarkus.messaging.nats.jet-stream.streams[i].name,Name of the stream to setup if auto-configure is enabled
quarkus.messaging.nats.jet-stream.streams[i].subjects[n],Name of the subject in stream to setup if auto-configure is enabled
quarkus.messaging.nats.jet-stream.key-value-stores[i].bucket-name,Name of Key-Value store
quarkus.messaging.nats.jet-stream.key-value-stores[i].description,Description of Key-Value store
quarkus.messaging.nats.jet-stream.key-value-stores[i].storage-type,The storage type (File or Memory)
quarkus.messaging.nats.jet-stream.key-value-stores[i].max-bucket-size,The maximum number of bytes for this bucket
quarkus.messaging.nats.jet-stream.key-value-stores[i].max-history-per-key,The maximum number of history for any one key. Includes the current value.
quarkus.messaging.nats.jet-stream.key-value-stores[i].max-value-size,The maximum size for an individual value in the bucket
quarkus.messaging.nats.jet-stream.key-value-stores[i].ttl,The maximum age for a value in this bucket
quarkus.messaging.nats.jet-stream.key-value-stores[i].replicas,The number of replicas for this bucket
quarkus.messaging.nats.jet-stream.key-value-stores[i].compressed,Whether to use compression
|======

=== Channel configuration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ public <T> Uni<Message<T>> resolve(String streamName, long sequence) {

@Override
public <T> Uni<Subscription<T>> subscribtion(PushConsumerConfiguration<T> configuration) {
return Uni.createFrom().item(() -> new PushSubscribtion<>(this, configuration, connection, messageMapper, context));
return Uni.createFrom().item(() -> new PushSubscription<>(this, configuration, connection, messageMapper, context));
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
import io.smallrye.mutiny.Multi;
import io.vertx.mutiny.core.Context;

public class PushSubscribtion<P> implements Subscription<P> {
private static final Logger logger = Logger.getLogger(PushSubscribtion.class);
public class PushSubscription<P> implements Subscription<P> {
private static final Logger logger = Logger.getLogger(PushSubscription.class);

private final Connection connection;
private final PushConsumerConfiguration<P> consumerConfiguration;
Expand All @@ -27,7 +27,7 @@ public class PushSubscribtion<P> implements Subscription<P> {
private volatile JetStreamSubscription subscription;
private volatile Dispatcher dispatcher;

PushSubscribtion(final Connection connection,
PushSubscription(final Connection connection,
final PushConsumerConfiguration<P> consumerConfiguration,
final io.nats.client.Connection natsConnection,
final MessageMapper messageMapper,
Expand Down

0 comments on commit e071948

Please sign in to comment.