Interface IgniteServicesEx

    • Method Detail

      • serviceProxy

        <T> T serviceProxy​(String name,
                           Class<? super T> svcItf,
                           boolean sticky,
                           @Nullable
                           @Nullable Supplier<Map<String,​Object>> callAttrsProvider,
                           long timeout)
                    throws IgniteException
        Gets a remote handle on the service. If service is available locally and no caller context provider is specified, then a local instance is returned and the timeout is ignored, otherwise, a proxy is dynamically created and provided for the specified service.
        Type Parameters:
        T - Service type.
        Parameters:
        name - Service name.
        svcItf - Interface for the service.
        sticky - Whether or not Ignite should always contact the same remote service or try to load-balance between services.
        callAttrsProvider - Service call context attributes provider.
        timeout - If greater than 0 created proxy will wait for service availability only specified time, and will limit remote service invocation time.
        Returns:
        Either proxy over remote service or local service if it is deployed locally and no caller context provider is specified.
        Throws:
        IgniteException - If failed to create service proxy.