UNPKG

ravendb

Version:
34 lines 1.92 kB
import { HttpRequestParameters } from "../../../Primitives/Http.js"; import { IOperation, OperationResultType } from "../OperationAbstractions.js"; import { CompareExchangeResult } from "./CompareExchangeResult.js"; import { RavenCommand } from "../../../Http/RavenCommand.js"; import { IDocumentStore } from "../../IDocumentStore.js"; import { DocumentConventions } from "../../Conventions/DocumentConventions.js"; import { HttpCache } from "../../../Http/HttpCache.js"; import { ServerNode } from "../../../Http/ServerNode.js"; import { Stream } from "node:stream"; import { IRaftCommand } from "../../../Http/IRaftCommand.js"; import { IMetadataDictionary } from "../../Session/IMetadataDictionary.js"; export declare class PutCompareExchangeValueOperation<T> implements IOperation<CompareExchangeResult<T>> { private readonly _key; private readonly _value; private readonly _index; private readonly _metadata; constructor(key: string, value: T, index: number); constructor(key: string, value: T, index: number, metadata: IMetadataDictionary); getCommand(store: IDocumentStore, conventions: DocumentConventions, cache: HttpCache): RavenCommand<CompareExchangeResult<T>>; get resultType(): OperationResultType; } export declare class PutCompareExchangeValueCommand<T> extends RavenCommand<CompareExchangeResult<T>> implements IRaftCommand { private readonly _key; private readonly _value; private readonly _index; private readonly _conventions; private readonly _metadata; constructor(key: string, value: T, index: number, metadata: IMetadataDictionary, conventions: DocumentConventions); get isReadRequest(): boolean; createRequest(node: ServerNode): HttpRequestParameters; setResponseAsync(bodyStream: Stream, fromCache: boolean): Promise<string>; getRaftUniqueRequestId(): string; } //# sourceMappingURL=PutCompareExchangeValueOperation.d.ts.map