Class GridServiceProxy<T>

    • Constructor Detail

      • GridServiceProxy

        public GridServiceProxy​(ClusterGroup prj,
                                String name,
                                Class<? super T> svc,
                                boolean sticky,
                                long timeout,
                                GridKernalContext ctx,
                                @Nullable
                                @Nullable Supplier<Map<String,​Object>> callAttrsProvider,
                                boolean keepBinary)
        Parameters:
        prj - Grid projection.
        name - Service name.
        svc - Service type class.
        sticky - Whether multi-node request should be done.
        timeout - Service availability wait timeout. Cannot be negative.
        ctx - Context.
        callAttrsProvider - Service call context attributes provider.
        keepBinary - True if results should be in binary form.
    • Method Detail

      • invokeMethod

        public Object invokeMethod​(Method mtd,
                                   Object[] args,
                                   @Nullable
                                   @Nullable Map<String,​Object> callAttrs)
                            throws Throwable
        Invoke the method.
        Parameters:
        mtd - Method.
        args - Arugments.
        callAttrs - Service call context attributes.
        Returns:
        Result.
        Throws:
        Throwable