ARTEMIS-4696 Deprecate queue prefetch address setting

This commit is contained in:
Domenico Francesco Bruscino 2024-03-27 17:12:49 +01:00 committed by Bruscino Domenico Francesco
parent 625bdfce6e
commit 774d321012
1 changed files with 3 additions and 0 deletions

View File

@ -535,6 +535,7 @@ public class AddressSettings implements Mergeable<AddressSettings>, Serializable
} }
//from amq5 //from amq5
//make it transient //make it transient
@Deprecated
private transient Integer queuePrefetch = null; private transient Integer queuePrefetch = null;
public AddressSettings(AddressSettings other) { public AddressSettings(AddressSettings other) {
@ -1133,10 +1134,12 @@ public class AddressSettings implements Mergeable<AddressSettings>, Serializable
return this; return this;
} }
@Deprecated
public int getQueuePrefetch() { public int getQueuePrefetch() {
return queuePrefetch != null ? queuePrefetch : AddressSettings.DEFAULT_QUEUE_PREFETCH; return queuePrefetch != null ? queuePrefetch : AddressSettings.DEFAULT_QUEUE_PREFETCH;
} }
@Deprecated
public AddressSettings setQueuePrefetch(int queuePrefetch) { public AddressSettings setQueuePrefetch(int queuePrefetch) {
this.queuePrefetch = queuePrefetch; this.queuePrefetch = queuePrefetch;
return this; return this;