Class CommandWriteOperation<T>

  • Type Parameters:
    T - the operations result type.
    All Implemented Interfaces:
    AsyncWriteOperation<T>, WriteOperation<T>

    @Deprecated
    public class CommandWriteOperation<T>
    extends java.lang.Object
    implements AsyncWriteOperation<T>, WriteOperation<T>
    Deprecated.
    An operation that executes an arbitrary command that writes to the server.
    Since:
    3.0
    • Constructor Detail

      • CommandWriteOperation

        public CommandWriteOperation​(java.lang.String databaseName,
                                     BsonDocument command,
                                     Decoder<T> decoder)
        Deprecated.
        Construct a new instance.
        Parameters:
        databaseName - the name of the database for the operation.
        command - the command to execute.
        decoder - the decoder for the result documents.
    • Method Detail

      • execute

        public T execute​(WriteBinding binding)
        Deprecated.
        Description copied from interface: WriteOperation
        General execute which can return anything of type T
        Specified by:
        execute in interface WriteOperation<T>
        Parameters:
        binding - the binding to execute in the context of
        Returns:
        T, the result of the execution