UNPKG

ajsfw

Version:
27 lines (26 loc) 1.06 kB
import { ITransportInterface } from "../message-transport/ITransportInterface"; export declare class RMIEndpoint { private __initialized; private __registrationWaiters; private __transport; private __endPointId; readonly endPointId: number; private __nextCallId; private __callPromises; private __service; private __send; constructor(transport: ITransportInterface, service: any); waitRegistered(): Promise<void>; makeCall(target: number, method: string, ...args: any[]): Promise<any>; notify(target: number, method: string, ...args: any[]): void; private __registerRmiEndpoint(); private __confirmRmiEndpointRegistration(); private __getNextCallId(); private __returnOk(target, callId, data); private __returnError(target, callId, errorCode, error); private __sendRMIMessage(target, rmiType, data); private __processMessage(message); private __processCall(sourceId, call); private __processNotify(notify); private __processReturn(ret); }