hazelcast-client
Version:
Hazelcast - open source In-Memory Data Grid - client for NodeJS
22 lines (21 loc) • 823 B
TypeScript
import * as Promise from 'bluebird';
import { DistributedObject } from '../DistributedObject';
import HazelcastClient from '../HazelcastClient';
declare class ProxyManager {
MAP_SERVICE: string;
SET_SERVICE: string;
LOCK_SERVICE: string;
QUEUE_SERVICE: string;
LIST_SERVICE: string;
MULTIMAP_SERVICE: string;
service: any;
private proxies;
private client;
constructor(client: HazelcastClient);
getOrCreateProxy(name: string, serviceName: string, createAtServer?: boolean): DistributedObject;
private createProxy(name, serviceName);
destroyProxy(name: string, serviceName: string): Promise<void>;
addDistributedObjectListener(listenerFunc: Function): Promise<string>;
removeDistributedObjectListener(listenerId: string): Promise<boolean>;
}
export = ProxyManager;