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

How to use
bitronix.tm.internal.BitronixRuntimeException
constructor

Best Java code snippets using bitronix.tm.internal.BitronixRuntimeException.<init> (Showing top 20 results out of 315)

origin: ehcache/ehcache3

@Override
public void init() {
 try {
  ResourceRegistrar.register(this);
 } catch (RecoveryException ex) {
  throw new BitronixRuntimeException("error recovering " + this, ex);
 }
}
origin: org.mule.btm/mule-btm

public void waitFor(Object future, long timeout) {
  Future<?> f = (Future<?>) future;
  try {
    f.get(timeout, TimeUnit.MILLISECONDS);
  } catch (InterruptedException ex) {
    throw new BitronixRuntimeException("job interrupted", ex);
  } catch (ExecutionException ex) {
    throw new BitronixRuntimeException("job execution exception", ex);
  } catch (TimeoutException ex) {
    // ok, just return
  }
}
origin: org.codehaus.btm/btm

public void waitFor(Object future, long timeout) {
  Future<?> f = (Future<?>) future;
  try {
    f.get(timeout, TimeUnit.MILLISECONDS);
  } catch (InterruptedException ex) {
    throw new BitronixRuntimeException("job interrupted", ex);
  } catch (ExecutionException ex) {
    throw new BitronixRuntimeException("job execution exception", ex);
  } catch (TimeoutException ex) {
    // ok, just return
  }
}
origin: bitronix/btm

/**
 * {@inheritDoc}
 */
@Override
public void init() {
  try {
    ResourceRegistrar.register(this);
  } catch (RecoveryException ex) {
    throw new BitronixRuntimeException("error recovering " + this, ex);
  }
}
origin: org.codehaus.btm/btm

/**
 * {@inheritDoc}
 */
public void init() {
  try {
    ResourceRegistrar.register(this);
  } catch (RecoveryException ex) {
    throw new BitronixRuntimeException("error recovering " + this, ex);
  }
}
origin: com.github.marcus-nl.btm/btm

/**
 * {@inheritDoc}
 */
@Override
public void init() {
  try {
    ResourceRegistrar.register(this);
  } catch (RecoveryException ex) {
    throw new BitronixRuntimeException("error recovering " + this, ex);
  }
}
origin: org.codehaus.btm/btm

public Object getResource(Object key) {
  try {
    if (key == null)
      throw new NullPointerException("key cannot be null");
    if (currentTransaction() == null || currentTransaction().getStatus() == Status.STATUS_NO_TRANSACTION)
      throw new IllegalStateException("no transaction started on current thread");
    return getResources().get(key);
  } catch (SystemException ex) {
    throw new BitronixRuntimeException("cannot get current transaction status", ex);
  }
}
origin: bitronix/btm

@Override
public Object getResource(Object key) {
  try {
    if (key == null)
      throw new NullPointerException("key cannot be null");
    if (currentTransaction() == null || currentTransaction().getStatus() == Status.STATUS_NO_TRANSACTION)
      throw new IllegalStateException("no transaction started on current thread");
    return getResources().get(key);
  } catch (SystemException ex) {
    throw new BitronixRuntimeException("cannot get current transaction status", ex);
  }
}
origin: org.mule.btm/mule-btm

public void putResource(Object key, Object value) {
  try {
    if (key == null)
      throw new NullPointerException("key cannot be null");
    if (currentTransaction() == null || currentTransaction().getStatus() == Status.STATUS_NO_TRANSACTION)
      throw new IllegalStateException("no transaction started on current thread");
    getResources().put(key, value);
  } catch (SystemException ex) {
    throw new BitronixRuntimeException("cannot get current transaction status", ex);
  }
}
origin: org.codehaus.btm/btm

public void putResource(Object key, Object value) {
  try {
    if (key == null)
      throw new NullPointerException("key cannot be null");
    if (currentTransaction() == null || currentTransaction().getStatus() == Status.STATUS_NO_TRANSACTION)
      throw new IllegalStateException("no transaction started on current thread");
    getResources().put(key, value);
  } catch (SystemException ex) {
    throw new BitronixRuntimeException("cannot get current transaction status", ex);
  }
}
origin: com.github.marcus-nl.btm/btm

@Override
public Object getResource(Object key) {
  try {
    if (key == null)
      throw new NullPointerException("key cannot be null");
    if (currentTransaction() == null || currentTransaction().getStatus() == Status.STATUS_NO_TRANSACTION)
      throw new IllegalStateException("no transaction started on current thread");
    return getResources().get(key);
  } catch (SystemException ex) {
    throw new BitronixRuntimeException("cannot get current transaction status", ex);
  }
}
origin: bitronix/btm

@Override
public int getTransactionStatus() {
  try {
    if (currentTransaction() == null)
      return Status.STATUS_NO_TRANSACTION;
    return currentTransaction().getStatus();
  } catch (SystemException ex) {
    throw new BitronixRuntimeException("cannot get current transaction status", ex);
  }
}
origin: com.github.marcus-nl.btm/btm

@Override
public int getTransactionStatus() {
  try {
    if (currentTransaction() == null)
      return Status.STATUS_NO_TRANSACTION;
    return currentTransaction().getStatus();
  } catch (SystemException ex) {
    throw new BitronixRuntimeException("cannot get current transaction status", ex);
  }
}
origin: org.codehaus.btm/btm

public boolean getRollbackOnly() {
  try {
    if (currentTransaction() == null || currentTransaction().getStatus() == Status.STATUS_NO_TRANSACTION)
      throw new IllegalStateException("no transaction started on current thread");
    return currentTransaction().getStatus() == Status.STATUS_MARKED_ROLLBACK;
  } catch (SystemException e) {
    throw new BitronixRuntimeException("cannot get current transaction status");
  }
}
origin: com.github.marcus-nl.btm/btm

@Override
public boolean getRollbackOnly() {
  try {
    if (currentTransaction() == null || currentTransaction().getStatus() == Status.STATUS_NO_TRANSACTION)
      throw new IllegalStateException("no transaction started on current thread");
    return currentTransaction().getStatus() == Status.STATUS_MARKED_ROLLBACK;
  } catch (SystemException e) {
    throw new BitronixRuntimeException("cannot get current transaction status");
  }
}
origin: org.mule.btm/mule-btm

public boolean getRollbackOnly() {
  try {
    if (currentTransaction() == null || currentTransaction().getStatus() == Status.STATUS_NO_TRANSACTION)
      throw new IllegalStateException("no transaction started on current thread");
    return currentTransaction().getStatus() == Status.STATUS_MARKED_ROLLBACK;
  } catch (SystemException e) {
    throw new BitronixRuntimeException("cannot get current transaction status");
  }
}
origin: bitronix/btm

@Override
public void setRollbackOnly() {
  try {
    if (currentTransaction() == null || currentTransaction().getStatus() == Status.STATUS_NO_TRANSACTION)
      throw new IllegalStateException("no transaction started on current thread");
    currentTransaction().setStatus(Status.STATUS_MARKED_ROLLBACK);
  } catch (SystemException ex) {
    throw new BitronixRuntimeException("cannot get or set current transaction status", ex);
  }
}
origin: org.codehaus.btm/btm

public Object getTransactionKey() {
  try {
    if (currentTransaction() == null || currentTransaction().getStatus() == Status.STATUS_NO_TRANSACTION)
      return null;
    return currentTransaction().getGtrid();
  } catch (SystemException ex) {
    throw new BitronixRuntimeException("cannot get current transaction status", ex);
  }
}
origin: com.github.marcus-nl.btm/btm

@Override
public Object getTransactionKey() {
  try {
    if (currentTransaction() == null || currentTransaction().getStatus() == Status.STATUS_NO_TRANSACTION)
      return null;
    return currentTransaction().getGtrid();
  } catch (SystemException ex) {
    throw new BitronixRuntimeException("cannot get current transaction status", ex);
  }
}
origin: org.mule.btm/mule-btm

public Object getTransactionKey() {
  try {
    if (currentTransaction() == null || currentTransaction().getStatus() == Status.STATUS_NO_TRANSACTION)
      return null;
    return currentTransaction().getGtrid();
  } catch (SystemException ex) {
    throw new BitronixRuntimeException("cannot get current transaction status", ex);
  }
}
bitronix.tm.internalBitronixRuntimeException<init>

Popular methods of BitronixRuntimeException

    Popular in Java

    • Running tasks concurrently on multiple threads
    • getOriginalFilename (MultipartFile)
      Return the original filename in the client's filesystem.This may contain path information depending
    • notifyDataSetChanged (ArrayAdapter)
    • requestLocationUpdates (LocationManager)
    • Rectangle (java.awt)
      A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
    • BufferedWriter (java.io)
      Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
    • Enumeration (java.util)
      A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
    • Manifest (java.util.jar)
      The Manifest class is used to obtain attribute information for a JarFile and its entries.
    • Reflections (org.reflections)
      Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
    • LoggerFactory (org.slf4j)
      The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
    • Top Sublime Text plugins
    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