类 Subscription

  • 所有已实现的接口:
    SubscriptionOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class Subscription
    extends com.google.protobuf.GeneratedMessageV3
    implements SubscriptionOrBuilder
    Protobuf type apache.rocketmq.v2.Subscription
    另请参阅:
    序列化表格
    • 嵌套类概要

      嵌套类 
      修饰符和类型 说明
      static class  Subscription.Builder
      Protobuf type apache.rocketmq.v2.Subscription
      • 从类继承的嵌套类/接口 com.google.protobuf.GeneratedMessageV3

        com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,​BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,​BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
      • 从类继承的嵌套类/接口 com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • 字段详细资料

      • GROUP_FIELD_NUMBER

        public static final int GROUP_FIELD_NUMBER
        另请参阅:
        常量字段值
      • SUBSCRIPTIONS_FIELD_NUMBER

        public static final int SUBSCRIPTIONS_FIELD_NUMBER
        另请参阅:
        常量字段值
      • FIFO_FIELD_NUMBER

        public static final int FIFO_FIELD_NUMBER
        另请参阅:
        常量字段值
      • RECEIVE_BATCH_SIZE_FIELD_NUMBER

        public static final int RECEIVE_BATCH_SIZE_FIELD_NUMBER
        另请参阅:
        常量字段值
      • LONG_POLLING_TIMEOUT_FIELD_NUMBER

        public static final int LONG_POLLING_TIMEOUT_FIELD_NUMBER
        另请参阅:
        常量字段值
    • 方法详细资料

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        覆盖:
        newInstance 在类中 com.google.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        指定者:
        getUnknownFields 在接口中 com.google.protobuf.MessageOrBuilder
        覆盖:
        getUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        指定者:
        internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3
      • hasGroup

        public boolean hasGroup()
         Subscription settings below here is appointed by client, thus it is
         unnecessary for server to push at present.
         Consumer group.
         
        optional .apache.rocketmq.v2.Resource group = 1;
        指定者:
        hasGroup 在接口中 SubscriptionOrBuilder
        返回:
        Whether the group field is set.
      • getGroup

        public Resource getGroup()
         Subscription settings below here is appointed by client, thus it is
         unnecessary for server to push at present.
         Consumer group.
         
        optional .apache.rocketmq.v2.Resource group = 1;
        指定者:
        getGroup 在接口中 SubscriptionOrBuilder
        返回:
        The group.
      • getGroupOrBuilder

        public ResourceOrBuilder getGroupOrBuilder()
         Subscription settings below here is appointed by client, thus it is
         unnecessary for server to push at present.
         Consumer group.
         
        optional .apache.rocketmq.v2.Resource group = 1;
        指定者:
        getGroupOrBuilder 在接口中 SubscriptionOrBuilder
      • getSubscriptionsCount

        public int getSubscriptionsCount()
         Subscription for consumer.
         
        repeated .apache.rocketmq.v2.SubscriptionEntry subscriptions = 2;
        指定者:
        getSubscriptionsCount 在接口中 SubscriptionOrBuilder
      • hasFifo

        public boolean hasFifo()
         Subscription settings below here are from server, it is essential for
         server to push.
         When FIFO flag is `true`, messages of the same message group are processed
         in first-in-first-out manner.
         Brokers will not deliver further messages of the same group until prior
         ones are completely acknowledged.
         
        optional bool fifo = 3;
        指定者:
        hasFifo 在接口中 SubscriptionOrBuilder
        返回:
        Whether the fifo field is set.
      • getFifo

        public boolean getFifo()
         Subscription settings below here are from server, it is essential for
         server to push.
         When FIFO flag is `true`, messages of the same message group are processed
         in first-in-first-out manner.
         Brokers will not deliver further messages of the same group until prior
         ones are completely acknowledged.
         
        optional bool fifo = 3;
        指定者:
        getFifo 在接口中 SubscriptionOrBuilder
        返回:
        The fifo.
      • hasReceiveBatchSize

        public boolean hasReceiveBatchSize()
         Message receive batch size here is essential for push consumer.
         
        optional int32 receive_batch_size = 4;
        指定者:
        hasReceiveBatchSize 在接口中 SubscriptionOrBuilder
        返回:
        Whether the receiveBatchSize field is set.
      • getReceiveBatchSize

        public int getReceiveBatchSize()
         Message receive batch size here is essential for push consumer.
         
        optional int32 receive_batch_size = 4;
        指定者:
        getReceiveBatchSize 在接口中 SubscriptionOrBuilder
        返回:
        The receiveBatchSize.
      • hasLongPollingTimeout

        public boolean hasLongPollingTimeout()
         Long-polling timeout for `ReceiveMessageRequest`, which is essential for
         push consumer.
         
        optional .google.protobuf.Duration long_polling_timeout = 5;
        指定者:
        hasLongPollingTimeout 在接口中 SubscriptionOrBuilder
        返回:
        Whether the longPollingTimeout field is set.
      • getLongPollingTimeout

        public com.google.protobuf.Duration getLongPollingTimeout()
         Long-polling timeout for `ReceiveMessageRequest`, which is essential for
         push consumer.
         
        optional .google.protobuf.Duration long_polling_timeout = 5;
        指定者:
        getLongPollingTimeout 在接口中 SubscriptionOrBuilder
        返回:
        The longPollingTimeout.
      • getLongPollingTimeoutOrBuilder

        public com.google.protobuf.DurationOrBuilder getLongPollingTimeoutOrBuilder()
         Long-polling timeout for `ReceiveMessageRequest`, which is essential for
         push consumer.
         
        optional .google.protobuf.Duration long_polling_timeout = 5;
        指定者:
        getLongPollingTimeoutOrBuilder 在接口中 SubscriptionOrBuilder
      • isInitialized

        public final boolean isInitialized()
        指定者:
        isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilder
        覆盖:
        isInitialized 在类中 com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        指定者:
        writeTo 在接口中 com.google.protobuf.MessageLite
        覆盖:
        writeTo 在类中 com.google.protobuf.GeneratedMessageV3
        抛出:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        指定者:
        getSerializedSize 在接口中 com.google.protobuf.MessageLite
        覆盖:
        getSerializedSize 在类中 com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        指定者:
        equals 在接口中 com.google.protobuf.Message
        覆盖:
        equals 在类中 com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        指定者:
        hashCode 在接口中 com.google.protobuf.Message
        覆盖:
        hashCode 在类中 com.google.protobuf.AbstractMessage
      • parseFrom

        public static Subscription parseFrom​(ByteBuffer data)
                                      throws com.google.protobuf.InvalidProtocolBufferException
        抛出:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Subscription parseFrom​(ByteBuffer data,
                                             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                      throws com.google.protobuf.InvalidProtocolBufferException
        抛出:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Subscription parseFrom​(com.google.protobuf.ByteString data)
                                      throws com.google.protobuf.InvalidProtocolBufferException
        抛出:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Subscription parseFrom​(com.google.protobuf.ByteString data,
                                             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                      throws com.google.protobuf.InvalidProtocolBufferException
        抛出:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Subscription parseFrom​(byte[] data)
                                      throws com.google.protobuf.InvalidProtocolBufferException
        抛出:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Subscription parseFrom​(byte[] data,
                                             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                      throws com.google.protobuf.InvalidProtocolBufferException
        抛出:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Subscription parseFrom​(com.google.protobuf.CodedInputStream input,
                                             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                      throws IOException
        抛出:
        IOException
      • newBuilderForType

        public Subscription.Builder newBuilderForType()
        指定者:
        newBuilderForType 在接口中 com.google.protobuf.Message
        指定者:
        newBuilderForType 在接口中 com.google.protobuf.MessageLite
      • toBuilder

        public Subscription.Builder toBuilder()
        指定者:
        toBuilder 在接口中 com.google.protobuf.Message
        指定者:
        toBuilder 在接口中 com.google.protobuf.MessageLite
      • newBuilderForType

        protected Subscription.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        指定者:
        newBuilderForType 在类中 com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static Subscription getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<Subscription> parser()
      • getParserForType

        public com.google.protobuf.Parser<Subscription> getParserForType()
        指定者:
        getParserForType 在接口中 com.google.protobuf.Message
        指定者:
        getParserForType 在接口中 com.google.protobuf.MessageLite
        覆盖:
        getParserForType 在类中 com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public Subscription getDefaultInstanceForType()
        指定者:
        getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuilder
        指定者:
        getDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilder