Make RetainedHandlingPolicy enum public (#10565)

Motivation:

Impossible to specify retained messages handling policy because the corresponding enum
isn't public (https://github.com/netty/netty/issues/10562)

Modification:

Made `RetainedHandlingPolicy` public

Result:

Fixes #10562.
This commit is contained in:
Paul Lysak 2020-09-11 09:32:16 +03:00 committed by Norman Maurer
parent 7f423772ba
commit dc66e8d67f

View File

@ -20,7 +20,7 @@ package io.netty.handler.codec.mqtt;
*/
public final class MqttSubscriptionOption {
enum RetainedHandlingPolicy {
public enum RetainedHandlingPolicy {
SEND_AT_SUBSCRIBE(0),
SEND_AT_SUBSCRIBE_IF_NOT_YET_EXISTS(1),
DONT_SEND_AT_SUBSCRIBE(2);