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

Protected encodeInvoke

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

Protected encodeInvokeOnKey

  • encodeInvokeOnKey<T>(codec: any, partitionKey: any, ...codecArguments: any[]): Promise
  • 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

Protected encodeInvokeOnPartition

  • encodeInvokeOnPartition<T>(codec: any, partitionId: number, ...codecArguments: any[]): Promise
  • 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

Protected encodeInvokeOnRandomTarget

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

forceUnlock

  • forceUnlock(): Promise

getLockCount

  • getLockCount(): Promise

getName

  • getName(): string

getPartitionKey

  • getPartitionKey(): string

getRemainingLeaseTime

  • getRemainingLeaseTime(): Promise

getServiceName

  • getServiceName(): string

isLocked

  • isLocked(): Promise

isLockedByThisClient

  • isLockedByThisClient(): Promise

lock

  • lock(leaseMillis?: number): Promise

Protected toData

  • toData(object: any): Data

Protected toObject

  • toObject(data: Data): any

tryLock

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

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

    Returns Promise

unlock

  • unlock(): Promise

Generated using TypeDoc