Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MapProxy<K, V>

Type parameters

  • K

  • V

Hierarchy

Implements

Index

Constructors

constructor

Properties

Protected client

Protected name

name: string

Protected serviceName

serviceName: string

Methods

addEntryListener

  • addEntryListener(listener: IMapListener<K, V>, key?: K, includeValue?: boolean): Promise

Private addEntryListenerInternal

  • addEntryListenerInternal(listener: IMapListener<K, V>, predicate: Predicate, key: K, includeValue: boolean): Promise

addEntryListenerWithPredicate

  • addEntryListenerWithPredicate(listener: IMapListener<K, V>, predicate: Predicate, key?: K, includeValue?: boolean): Promise

addIndex

  • addIndex(attribute: string, ordered: boolean): Promise

clear

  • clear(): Promise

containsKey

  • containsKey(key: K): Promise

containsValue

  • containsValue(value: V): Promise

delete

  • delete(key: K): Promise

destroy

  • destroy(): 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

entrySet

  • entrySet(): Promise

entrySetWithPredicate

  • entrySetWithPredicate(predicate: Predicate): Promise

evict

  • evict(key: K): Promise

evictAll

  • evictAll(): Promise

flush

  • flush(): Promise

forceUnlock

  • forceUnlock(key: K): Promise

get

  • get(key: K): Promise

getAll

  • getAll(keys: K[]): Promise

getEntryView

  • getEntryView(key: K): Promise

getName

  • getName(): string

getPartitionKey

  • getPartitionKey(): string

getServiceName

  • getServiceName(): string

isEmpty

  • isEmpty(): Promise

isLocked

  • isLocked(key: K): Promise

keySet

  • keySet(): Promise

keySetWithPredicate

  • keySetWithPredicate(predicate: Predicate): Promise

loadAll

  • loadAll(keys?: K[], replaceExistingValues?: boolean): Promise
  • Parameters

    • Default value keys: K[] = null
    • Default value replaceExistingValues: boolean = true

    Returns Promise

lock

  • lock(key: K, ttl?: number): Promise

put

  • put(key: K, value: V, ttl?: number): Promise

putAll

  • putAll(pairs: [K, V]): Promise

putIfAbsent

  • putIfAbsent(key: K, value: V, ttl?: number): Promise

putTransient

  • putTransient(key: K, value: V, ttl?: number): Promise

remove

  • remove(key: K, value?: V): Promise

removeEntryListener

  • removeEntryListener(listenerId: string): Promise

replace

  • replace(key: K, newValue: V): Promise

replaceIfSame

  • replaceIfSame(key: K, oldValue: V, newValue: V): Promise

set

  • set(key: K, value: V, ttl?: number): Promise

size

  • size(): Promise

Protected toData

  • toData(object: any): Data

Protected toObject

  • toObject(data: Data): any

tryLock

  • tryLock(key: K, timeout?: number, lease?: number): Promise
  • Parameters

    • key: K
    • Default value timeout: number = 0
    • Default value lease: number = -1

    Returns Promise

tryPut

  • tryPut(key: K, value: V, timeout: number): Promise

tryRemove

  • tryRemove(key: K, timeout: number): Promise

unlock

  • unlock(key: K): Promise

values

  • values(): Promise

valuesWithPredicate

  • valuesWithPredicate(predicate: Predicate): Promise

Generated using TypeDoc