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 GitHub
parent 1dda2be8aa
commit 8c1db6ccb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);