Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: jNATS MessageQueue API changes #71

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ repositories {

dependencies {

implementation 'io.nats:jnats:2.17.2'
implementation 'io.nats:jnats:2.19.1'
implementation("com.fasterxml.jackson.core:jackson-core:2.14.2")
implementation("io.netty:netty-handler:4.1.97.Final")
implementation(platform("io.vertx:vertx-stack-depchain:4.5.1"))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package io.nats.client.impl;

import io.nats.client.MessageHandler;
import io.nats.client.Options;
import io.vertx.core.impl.ContextInternal;

import java.time.Duration;
Expand All @@ -11,7 +12,11 @@ public class VertxDispatcherMessageQueue extends MessageQueue {
private final ContextInternal context;

VertxDispatcherMessageQueue(VertxDispatcher dispatcher, ContextInternal context) {
super(true);
this(dispatcher, context, Options.DEFAULT_REQUEST_CLEANUP_INTERVAL);
}

VertxDispatcherMessageQueue(VertxDispatcher dispatcher, ContextInternal context, Duration cleanupInterval) {
super(true, cleanupInterval);
this.dispatcher = dispatcher;
this.context = context;
}
Expand Down Expand Up @@ -65,7 +70,6 @@ void poisonTheQueue() {
throw new IllegalStateException("poisonTheQueue not used.");
}

@Override
boolean offer(NatsMessage msg) {
throw new IllegalStateException("offer not used.");
}
Expand Down