Enum ServerFeature

    • Enum Constant Detail


        public static final ServerFeature CLUSTERMAP_CHANGE_NOTIFICATION
        Request the server to push any cluster maps stored by ns_server into one of the buckets the client have access to.

        public static final ServerFeature UNORDERED_EXECUTION
        Tell the server that we're ok with the server reordering the execution of commands.

        public static final ServerFeature ALT_REQUEST
        Allows the server to accept requests with flexible extras.

        public static final ServerFeature SYNC_REPLICATION
        Specify durability requirements for mutations.

        public static final ServerFeature COLLECTIONS
        Enables the collections feature.

        History note: There was a "collections" feature in Couchbase in 5.0, but it had a different code (0x09) that has since been retired.

      • VATTR

        public static final ServerFeature VATTR
        Enables the vattr feature. Note that vattrs (such as $document) were available before this, but this flag signifies that if a vattr is requested that the server does not recognise, it will be rejected with the correct XATTR_UNKNOWN_VATTR error, rather than the connection being disconnected.

        public static final ServerFeature CREATE_AS_DELETED
        Enables the "create as deleted" flag, allowing a document to be created in a tombstoned state.
    • Method Detail

      • values

        public static ServerFeature[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ServerFeature c : ServerFeature.values())
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ServerFeature valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        name - the name of the enum constant to be returned.
        the enum constant with the specified name
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • value

        public short value()
        Returns the actual byte value for the wire protocol.
        the actual wire value.