public override ThreadStart getExecuteJobsRunnable(IList <string> jobIds, ProcessEngineImpl processEngine) { //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final org.camunda.bpm.container.RuntimeContainerDelegate runtimeContainerDelegate = getRuntimeContainerDelegate(); RuntimeContainerDelegate runtimeContainerDelegate = RuntimeContainerDelegate; //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final org.camunda.bpm.container.ExecutorService executorService = runtimeContainerDelegate.getExecutorService(); ExecutorService executorService = runtimeContainerDelegate.ExecutorService; return(executorService.getExecuteJobsRunnable(jobIds, processEngine)); }
protected internal override void startExecutingJobs() { //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final org.camunda.bpm.container.RuntimeContainerDelegate runtimeContainerDelegate = getRuntimeContainerDelegate(); RuntimeContainerDelegate runtimeContainerDelegate = RuntimeContainerDelegate; // schedule job acquisition if (!runtimeContainerDelegate.ExecutorService.schedule(acquireJobsRunnable, true)) { throw new ProcessEngineException("Could not schedule AcquireJobsRunnable for execution."); } }
public override void executeJobs(IList <string> jobIds, ProcessEngineImpl processEngine) { //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final org.camunda.bpm.container.RuntimeContainerDelegate runtimeContainerDelegate = getRuntimeContainerDelegate(); RuntimeContainerDelegate runtimeContainerDelegate = RuntimeContainerDelegate; //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final org.camunda.bpm.container.ExecutorService executorService = runtimeContainerDelegate.getExecutorService(); ExecutorService executorService = runtimeContainerDelegate.ExecutorService; ThreadStart executeJobsRunnable = getExecuteJobsRunnable(jobIds, processEngine); // delegate job execution to runtime container if (!executorService.schedule(executeJobsRunnable, false)) { logRejectedExecution(processEngine, jobIds.Count); rejectedJobsHandler.jobsRejected(jobIds, processEngine, this); } }
public virtual void set(RuntimeContainerDelegate @delegate) { this.@delegate = @delegate; }