Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Implements

Index

Constructors

constructor

Properties

Protected client

Protected name

name: string

Protected serviceName

serviceName: string

Methods

destroy

  • destroy(): Promise<void>

Protected encodeInvoke

  • encodeInvoke<T>(codec: any, ...codecArguments: any[]): Promise<T>

Protected encodeInvokeOnAddress

  • encodeInvokeOnAddress<T>(codec: any, address: Address, ...codecArguments: any[]): Promise<T>

Protected encodeInvokeOnKey

  • encodeInvokeOnKey<T>(codec: any, partitionKey: any, ...codecArguments: any[]): Promise<T>
  • Encodes a request from a codec and invokes it on owner node of given key.

    Type parameters

    • T

    Parameters

    • codec: any
    • partitionKey: any
    • Rest ...codecArguments: any[]

    Returns Promise<T>

Protected encodeInvokeOnPartition

  • encodeInvokeOnPartition<T>(codec: any, partitionId: number, ...codecArguments: any[]): Promise<T>
  • Encodes a request from a codec and invokes it on owner node of given partition.

    Type parameters

    • T

    Parameters

    • codec: any
    • partitionId: number
    • Rest ...codecArguments: any[]

    Returns Promise<T>

Protected encodeInvokeOnRandomTarget

  • encodeInvokeOnRandomTarget<T>(codec: any, ...codecArguments: any[]): Promise<T>

forceUnlock

  • forceUnlock(): Promise<void>

Protected getConnectedServerVersion

  • getConnectedServerVersion(): number

getLockCount

  • getLockCount(): Promise<number>

getName

  • getName(): string

getPartitionKey

  • getPartitionKey(): string

getRemainingLeaseTime

  • getRemainingLeaseTime(): Promise<number>

getServiceName

  • getServiceName(): string

isLocked

  • isLocked(): Promise<boolean>

isLockedByThisClient

  • isLockedByThisClient(): Promise<boolean>

lock

  • lock(leaseMillis?: number): Promise<void>

Protected postDestroy

  • postDestroy(): Promise<void>

Protected toData

  • toData(object: any): Data

Protected toObject

  • toObject(data: Data): any

tryLock

  • tryLock(timeoutMillis?: number, leaseMillis?: number): Promise<boolean>
  • Parameters

    • Default value timeoutMillis: number = 0
    • Default value leaseMillis: number = -1

    Returns Promise<boolean>

unlock

  • unlock(): Promise<void>

Generated using TypeDoc