UNPKG

hamok

Version:

Lightweight Distributed Object Storage on RAFT consensus algorithm

29 lines 1.48 kB
export declare class UpdateEntriesRequest<K, V> { readonly requestId: string; readonly entries: ReadonlyMap<K, V>; readonly sourceEndpointId?: string | undefined; readonly prevValue?: V | undefined; constructor(requestId: string, entries: ReadonlyMap<K, V>, sourceEndpointId?: string | undefined, prevValue?: V | undefined); createResponse(updatedEntries: ReadonlyMap<K, V>): UpdateEntriesResponse<K, V>; } export declare class UpdateEntriesResponse<K, V> { readonly requestId: string; readonly updatedEntries: ReadonlyMap<K, V>; readonly destinationEndpointId?: string; constructor(requetId: string, updatedEntries: ReadonlyMap<K, V>, destinationEndpointId?: string); } export declare class UpdateEntriesNotification<K, V> { readonly updatedEntries: ReadonlyMap<K, V>; readonly sourceEndpointId?: string | undefined; readonly destinationEndpointId?: string | undefined; constructor(updatedEntries: ReadonlyMap<K, V>, sourceEndpointId?: string | undefined, destinationEndpointId?: string | undefined); } export declare class EntryUpdatedNotification<K, V> { readonly key: K; readonly newValue: V; readonly oldValue: V; readonly sourceEndpointId?: string | undefined; readonly destinationEndpointId?: string | undefined; constructor(key: K, newValue: V, oldValue: V, sourceEndpointId?: string | undefined, destinationEndpointId?: string | undefined); } //# sourceMappingURL=UpdateEntries.d.ts.map