jadex.bridge.service.search.SServiceProvider.waitForService()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(3.1k)|赞(0)|评价(0)|浏览(96)

本文整理了Java中jadex.bridge.service.search.SServiceProvider.waitForService()方法的一些代码示例,展示了SServiceProvider.waitForService()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SServiceProvider.waitForService()方法的具体详情如下:
包路径:jadex.bridge.service.search.SServiceProvider
类名称:SServiceProvider
方法名:waitForService

SServiceProvider.waitForService介绍

[英]Get the service call service with delay.
[中]延迟获得服务呼叫服务。

代码示例

代码示例来源:origin: org.activecomponents.jadex/jadex-bridge

public IFuture<T> execute(IInternalAccess ia)
  {
    return waitForService(ia, searchcmd, 0, max, delay);
  }
});

代码示例来源:origin: org.activecomponents.jadex/jadex-bridge

/**
 *  Get the service call service with delay.
 */
public static <T> IFuture<T> waitForService(final IInternalAccess agent, final IResultCommand<IFuture<T>, Void> searchcmd, final int max, final int delay)
{
  return waitForService(agent, searchcmd, 0, max, delay);
}

代码示例来源:origin: org.activecomponents.jadex/jadex-bridge

/**
 *  Get the service call service with delay.
 */
public static <T> IFuture<T> waitForService(final IInternalAccess agent, final String reqservicename, final int max, final int delay)
{
  IResultCommand<IFuture<T>, Void> searchcmd = new IResultCommand<IFuture<T>, Void>()
  {
    public IFuture<T> execute(Void args)
    {
      return agent.getComponentFeature(IRequiredServicesFeature.class).getRequiredService(reqservicename);
    }
  };
  
  return waitForService(agent, searchcmd, max, delay);
}

代码示例来源:origin: org.activecomponents.jadex/jadex-bridge

/**
 *  Get the service call service with delay.
 */
public static <T> IFuture<T> waitForService(final IExternalAccess agent, final String reqservicename, final int max, final int delay)
{
  IResultCommand<IFuture<T>, Void> searchcmd = new IResultCommand<IFuture<T>, Void>()
  {
    public IFuture<T> execute(Void args)
    {
      return agent.scheduleStep(new IComponentStep<T>()
      {
        public IFuture<T> execute(IInternalAccess ia)
        {
          return ia.getComponentFeature(IRequiredServicesFeature.class).getRequiredService(reqservicename);
        }
      });
    }
  };
  
  return waitForService(agent, searchcmd, max, delay);
}

代码示例来源:origin: org.activecomponents.jadex/jadex-applications-micro

SServiceProvider.waitForService(agent, new IResultCommand<IFuture<IAutoTerminateService>, Void>()

代码示例来源:origin: org.activecomponents.jadex/jadex-applications-micro

IFuture<ITestService> fut = SServiceProvider.waitForService(agent, new IResultCommand<IFuture<ITestService>, Void>()

代码示例来源:origin: org.activecomponents.jadex/jadex-applications-micro

IFuture<IServiceCallService> fut = SServiceProvider.waitForService(agent, new IResultCommand<IFuture<IServiceCallService>, Void>()

代码示例来源:origin: org.activecomponents.jadex/jadex-applications-micro

final ILotteryService ls = (ILotteryService)SServiceProvider.waitForService(agent, "ls", 3, 3000).get();

代码示例来源:origin: org.activecomponents.jadex/jadex-platform

SServiceProvider.waitForService(component, new IResultCommand<IFuture<IRegistrySynchronizationService>, Void>()

代码示例来源:origin: org.activecomponents.jadex/jadex-applications-micro

final ILotteryService ls = (ILotteryService)SServiceProvider.waitForService(agent, "ls", 3, 3000).get();

相关文章