Skip to content

Commit

Permalink
ARTEMIS-4696 Deprecate queue prefetch address setting
Browse files Browse the repository at this point in the history
  • Loading branch information
brusdev committed Mar 27, 2024
1 parent 625bdfc commit 774d321
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,7 @@ public class AddressSettings implements Mergeable<AddressSettings>, Serializable
}
//from amq5
//make it transient
@Deprecated
private transient Integer queuePrefetch = null;

public AddressSettings(AddressSettings other) {
Expand Down Expand Up @@ -1133,10 +1134,12 @@ public AddressSettings setManagementBrowsePageSize(int managementBrowsePageSize)
return this;
}

@Deprecated
public int getQueuePrefetch() {
return queuePrefetch != null ? queuePrefetch : AddressSettings.DEFAULT_QUEUE_PREFETCH;
}

@Deprecated
public AddressSettings setQueuePrefetch(int queuePrefetch) {
this.queuePrefetch = queuePrefetch;
return this;
Expand Down

0 comments on commit 774d321

Please sign in to comment.