UNPKG

hazelcast-client

Version:

Hazelcast - open source In-Memory Data Grid - client for NodeJS

20 lines (19 loc) 610 B
/// <reference types="bluebird" /> import * as Promise from 'bluebird'; import Address = require('./Address'); import HazelcastClient from './HazelcastClient'; declare class PartitionService { private client; private partitionMap; private partitionCount; private partitionRefreshTask; private isShutdown; constructor(client: HazelcastClient); initialize(): Promise<void>; shutdown(): void; refresh(): Promise<void>; getAddressForPartition(partitionId: number): Address; getPartitionId(key: any): number; getPartitionCount(): number; } export = PartitionService;