Codota Logo
DefaultPromise.setFailure0
Code IndexAdd Codota to your IDE (free)

How to use
setFailure0
method
in
io.netty.util.concurrent.DefaultPromise

Best Java code snippets using io.netty.util.concurrent.DefaultPromise.setFailure0 (Showing top 14 results out of 315)

  • Common ways to obtain DefaultPromise
private void myMethod () {
DefaultPromise d =
  • Codota IconEventExecutor executor;new DefaultPromise<>(executor)
  • Smart code suggestions by Codota
}
origin: netty/netty

@Override
public boolean tryFailure(Throwable cause) {
  return setFailure0(cause);
}
origin: netty/netty

@Override
public Promise<V> setFailure(Throwable cause) {
  if (setFailure0(cause)) {
    return this;
  }
  throw new IllegalStateException("complete already: " + this, cause);
}
origin: redisson/redisson

@Override
public boolean tryFailure(Throwable cause) {
  if (setFailure0(cause)) {
    notifyListeners();
    return true;
  }
  return false;
}
origin: redisson/redisson

@Override
public Promise<V> setFailure(Throwable cause) {
  if (setFailure0(cause)) {
    notifyListeners();
    return this;
  }
  throw new IllegalStateException("complete already: " + this, cause);
}
origin: wildfly/wildfly

@Override
public boolean tryFailure(Throwable cause) {
  if (setFailure0(cause)) {
    notifyListeners();
    return true;
  }
  return false;
}
origin: wildfly/wildfly

@Override
public Promise<V> setFailure(Throwable cause) {
  if (setFailure0(cause)) {
    notifyListeners();
    return this;
  }
  throw new IllegalStateException("complete already: " + this, cause);
}
origin: io.netty/netty-common

@Override
public Promise<V> setFailure(Throwable cause) {
  if (setFailure0(cause)) {
    notifyListeners();
    return this;
  }
  throw new IllegalStateException("complete already: " + this, cause);
}
origin: io.netty/netty-common

@Override
public boolean tryFailure(Throwable cause) {
  if (setFailure0(cause)) {
    notifyListeners();
    return true;
  }
  return false;
}
origin: org.apache.activemq/artemis-jms-client-all

@Override
public Promise<V> setFailure(Throwable cause) {
  if (setFailure0(cause)) {
    notifyListeners();
    return this;
  }
  throw new IllegalStateException("complete already: " + this, cause);
}
origin: apache/activemq-artemis

@Override
public boolean tryFailure(Throwable cause) {
  if (setFailure0(cause)) {
    notifyListeners();
    return true;
  }
  return false;
}
origin: apache/activemq-artemis

@Override
public Promise<V> setFailure(Throwable cause) {
  if (setFailure0(cause)) {
    notifyListeners();
    return this;
  }
  throw new IllegalStateException("complete already: " + this, cause);
}
origin: org.jboss.eap/wildfly-client-all

@Override
public Promise<V> setFailure(Throwable cause) {
  if (setFailure0(cause)) {
    notifyListeners();
    return this;
  }
  throw new IllegalStateException("complete already: " + this, cause);
}
origin: org.apache.activemq/artemis-jms-client-all

@Override
public boolean tryFailure(Throwable cause) {
  if (setFailure0(cause)) {
    notifyListeners();
    return true;
  }
  return false;
}
origin: org.jboss.eap/wildfly-client-all

@Override
public boolean tryFailure(Throwable cause) {
  if (setFailure0(cause)) {
    notifyListeners();
    return true;
  }
  return false;
}
io.netty.util.concurrentDefaultPromisesetFailure0

Popular methods of DefaultPromise

  • <init>
    Creates a new instance. It is preferable to use EventExecutor#newPromise() to create a new promise
  • setSuccess
  • setFailure
  • addListener
  • await
  • addListeners
  • awaitUninterruptibly
  • checkDeadLock
  • removeListener
  • removeListeners
  • sync
  • syncUninterruptibly
  • sync,
  • syncUninterruptibly,
  • tryFailure,
  • cause,
  • isDone,
  • trySuccess,
  • executor,
  • addListener0,
  • await0,
  • checkNotifyWaiters

Popular in Java

  • Making http post requests using okhttp
  • setScale (BigDecimal)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • onRequestPermissionsResult (Fragment)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • ResourceBundle (java.util)
    Resource bundles contain locale-specific objects. When your program needs a locale-specific resource
  • TimerTask (java.util)
    A task that can be scheduled for one-time or repeated execution by a Timer.
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • JPanel (javax.swing)
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