Tabnine Logo
SingleConsumerCondition.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.camunda.bpm.engine.impl.util.SingleConsumerCondition
constructor

Best Java code snippets using org.camunda.bpm.engine.impl.util.SingleConsumerCondition.<init> (Showing top 10 results out of 315)

origin: camunda/camunda-bpm-platform

public FetchAndLockHandlerImpl() {
 this.condition = new SingleConsumerCondition(handlerThread);
}
origin: camunda/camunda-bpm-platform

@Test(timeout=10000)
public void shouldNotBlockIfSignalAvailableDifferentThread() throws InterruptedException {
 final SingleConsumerCondition condition = new SingleConsumerCondition(Thread.currentThread());
 Thread consumer = new Thread() {
  @Override
  public void run() {
   condition.signal();
  }
 };
 consumer.start();
 consumer.join();
 // then
 condition.await(100000);
}
origin: camunda/camunda-bpm-platform

@Test
public void cannotCreateWithNull() {
 try {
  new SingleConsumerCondition(null);
  Assert.fail("expected exception");
 }
 catch (IllegalArgumentException e) {
  // expected
 }
}
origin: camunda/camunda-bpm-platform

@Test
public void cannotAwaitFromDifferentThread() {
 // given
 SingleConsumerCondition condition = new SingleConsumerCondition(new Thread());
 // when then
 try {
  condition.await(0);
  Assert.fail("expected exception");
 }
 catch (RuntimeException e) {
  // expected
 }
}
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: org.camunda.bpm/camunda-engine-rest-jaxrs2

public FetchAndLockHandlerImpl() {
 this.condition = new SingleConsumerCondition(handlerThread);
}
origin: org.camunda.bpm/camunda-engine

@Test(timeout=10000)
public void shouldNotBlockIfSignalAvailableDifferentThread() throws InterruptedException {
 final SingleConsumerCondition condition = new SingleConsumerCondition(Thread.currentThread());
 Thread consumer = new Thread() {
  @Override
  public void run() {
   condition.signal();
  }
 };
 consumer.start();
 consumer.join();
 // then
 condition.await(100000);
}
origin: org.camunda.bpm/camunda-engine

@Test
public void cannotCreateWithNull() {
 try {
  new SingleConsumerCondition(null);
  Assert.fail("expected exception");
 }
 catch (IllegalArgumentException e) {
  // expected
 }
}
origin: org.camunda.bpm/camunda-engine

@Test
public void cannotAwaitFromDifferentThread() {
 // given
 SingleConsumerCondition condition = new SingleConsumerCondition(new Thread());
 // when then
 try {
  condition.await(0);
  Assert.fail("expected exception");
 }
 catch (RuntimeException e) {
  // expected
 }
}
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);
}
org.camunda.bpm.engine.impl.utilSingleConsumerCondition<init>

Popular methods of SingleConsumerCondition

  • signal
  • await

Popular in Java

  • Reactive rest calls using spring rest template
  • getApplicationContext (Context)
  • getSystemService (Context)
  • setScale (BigDecimal)
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Notification (javax.management)
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now