congrats Icon
New! Announcing our next generation AI code completions
Read here
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

    • Updating database using SQL prepared statement
    • getSharedPreferences (Context)
    • compareTo (BigDecimal)
    • notifyDataSetChanged (ArrayAdapter)
    • BigDecimal (java.math)
      An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
    • JarFile (java.util.jar)
      JarFile is used to read jar entries and their associated data from jar files.
    • Collectors (java.util.stream)
    • Notification (javax.management)
    • IOUtils (org.apache.commons.io)
      General IO stream manipulation utilities. This class provides static utility methods for input/outpu
    • Logger (org.slf4j)
      The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
    • Top 25 Plugins for Webstorm
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

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