Class MutationCommandBuilder

java.lang.Object
com.couchbase.client.core.message.kv.subdoc.multi.MutationCommandBuilder

@Committed
@Public
public class MutationCommandBuilder
extends Object
Builder for MutationCommand.
Since:
1.4.2
Author:
Subhashni Balakrishnan
  • Constructor Details

    • MutationCommandBuilder

      public MutationCommandBuilder​(Mutation mutation, String path)
      Create a multi-mutation command.
      Parameters:
      mutation - the mutation type.
      path - the path to mutate inside the document.
    • MutationCommandBuilder

      public MutationCommandBuilder​(Mutation mutation, String path, ByteBuf fragment)
      Create a multi-mutation command.
      Parameters:
      mutation - the mutation type.
      path - the path to mutate inside the document.
      fragment - the target value for the mutation. This will be released when the request is sent.
  • Method Details