Codota Logo
SingleConsumerCondition.signal
Code IndexAdd Codota to your IDE (free)

How to use
signal
method
in
org.camunda.bpm.engine.impl.util.SingleConsumerCondition

Best Java code snippets using org.camunda.bpm.engine.impl.util.SingleConsumerCondition.signal (Showing top 17 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: camunda/camunda-bpm-platform

 public void signalAll() {
  for (SingleConsumerCondition condition : conditions) {
   condition.signal();
  }
 }
}
origin: camunda/camunda-bpm-platform

 public void signalAll() {
  for (SingleConsumerCondition condition : conditions) {
   condition.signal();
  }
 }
}
origin: camunda/camunda-bpm-platform

 @Override
 public void run() {
  condition.signal();
 }
};
origin: camunda/camunda-bpm-platform

@Override
public void shutdown() {
 try {
  ProcessEngineImpl.EXT_TASK_CONDITIONS.removeConsumer(condition);
 }
 finally {
  isRunning = false;
  condition.signal();
 }
 try {
  handlerThread.join();
 } catch (InterruptedException e) {
  LOG.log(Level.WARNING, "Shutting down the handler thread failed: {0}", e);
 }
}
origin: camunda/camunda-bpm-platform

protected void addRequest(FetchAndLockRequest request) {
 if (!queue.offer(request)) {
  AsyncResponse asyncResponse = request.getAsyncResponse();
  errorTooManyRequests(asyncResponse);
 }
 condition.signal();
}
origin: camunda/camunda-bpm-platform

@Test
public void shouldSignalConditionOnTaskCreate() {
 // when
 rule.getRuntimeService()
  .startProcessInstanceByKey("theProcess");
 // then
 verify(condition, times(1)).signal();
}
origin: camunda/camunda-bpm-platform

@Test(timeout=10000)
public void shouldNotBlockIfSignalAvailable() {
 SingleConsumerCondition condition = new SingleConsumerCondition(Thread.currentThread());
 // given
 condition.signal();
 // then
 condition.await(100000);
}
origin: camunda/camunda-bpm-platform

@Test
public void shouldSignalConditionOnTaskCreateMultipleTimes() {
 // when
 rule.getRuntimeService()
  .startProcessInstanceByKey("theProcess");
 rule.getRuntimeService()
  .startProcessInstanceByKey("theProcess");
 // then
 verify(condition, times(2)).signal();
}
origin: camunda/camunda-bpm-platform

@Test
public void shouldSignalConditionOnUnlock() {
 // given
 rule.getRuntimeService()
  .startProcessInstanceByKey("theProcess");
 reset(condition); // clear signal for create
 LockedExternalTask lockedTask = rule.getExternalTaskService().fetchAndLock(1, "theWorker")
  .topic("theTopic", 10000)
  .execute()
  .get(0);
 // when
 rule.getExternalTaskService().unlock(lockedTask.getId());
 // then
 verify(condition, times(1)).signal();
}
origin: org.camunda.bpm/camunda-engine

 public void signalAll() {
  for (SingleConsumerCondition condition : conditions) {
   condition.signal();
  }
 }
}
origin: org.camunda.bpm/camunda-engine-rest-jaxrs2

@Override
public void shutdown() {
 try {
  ProcessEngineImpl.EXT_TASK_CONDITIONS.removeConsumer(condition);
 }
 finally {
  isRunning = false;
  condition.signal();
 }
}
origin: org.camunda.bpm/camunda-engine

 @Override
 public void run() {
  condition.signal();
 }
};
origin: org.camunda.bpm/camunda-engine-rest-jaxrs2

protected void addRequest(FetchAndLockRequest request) {
 if (!queue.offer(request)) {
  AsyncResponse asyncResponse = request.getAsyncResponse();
  errorTooManyRequests(asyncResponse);
 }
 condition.signal();
}
origin: org.camunda.bpm/camunda-engine

@Test
public void shouldSignalConditionOnTaskCreate() {
 // when
 rule.getRuntimeService()
  .startProcessInstanceByKey("theProcess");
 // then
 verify(condition, times(1)).signal();
}
origin: org.camunda.bpm/camunda-engine

@Test(timeout=10000)
public void shouldNotBlockIfSignalAvailable() {
 SingleConsumerCondition condition = new SingleConsumerCondition(Thread.currentThread());
 // given
 condition.signal();
 // then
 condition.await(100000);
}
origin: org.camunda.bpm/camunda-engine

@Test
public void shouldSignalConditionOnTaskCreateMultipleTimes() {
 // when
 rule.getRuntimeService()
  .startProcessInstanceByKey("theProcess");
 rule.getRuntimeService()
  .startProcessInstanceByKey("theProcess");
 // then
 verify(condition, times(2)).signal();
}
origin: org.camunda.bpm/camunda-engine

@Test
public void shouldSignalConditionOnUnlock() {
 // given
 rule.getRuntimeService()
  .startProcessInstanceByKey("theProcess");
 reset(condition); // clear signal for create
 LockedExternalTask lockedTask = rule.getExternalTaskService().fetchAndLock(1, "theWorker")
  .topic("theTopic", 10000)
  .execute()
  .get(0);
 // when
 rule.getExternalTaskService().unlock(lockedTask.getId());
 // then
 verify(condition, times(1)).signal();
}
org.camunda.bpm.engine.impl.utilSingleConsumerConditionsignal

Popular methods of SingleConsumerCondition

  • <init>
  • await

Popular in Java

  • Start an intent from android
  • putExtra (Intent)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • ConcurrentHashMap (java.util.concurrent)
    A hash table supporting full concurrency of retrievals and adjustable expected concurrency for updat
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Option (scala)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now