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

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

Best Java code snippets using io.netty.util.concurrent.DefaultPromise.notifyListenerWithStackOverFlowProtection (Showing top 7 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

/**
 * Notify a listener that a future has completed.
 * <p>
 * This method has a fixed depth of {@link #MAX_LISTENER_STACK_DEPTH} that will limit recursion to prevent
 * {@link StackOverflowError} and will stop notifying listeners added after this threshold is exceeded.
 * @param eventExecutor the executor to use to notify the listener {@code listener}.
 * @param future the future that is complete.
 * @param listener the listener to notify.
 */
protected static void notifyListener(
    EventExecutor eventExecutor, final Future<?> future, final GenericFutureListener<?> listener) {
  checkNotNull(eventExecutor, "eventExecutor");
  checkNotNull(future, "future");
  checkNotNull(listener, "listener");
  notifyListenerWithStackOverFlowProtection(eventExecutor, future, listener);
}
origin: redisson/redisson

/**
 * Notify a listener that a future has completed.
 * <p>
 * This method has a fixed depth of {@link #MAX_LISTENER_STACK_DEPTH} that will limit recursion to prevent
 * {@link StackOverflowError} and will stop notifying listeners added after this threshold is exceeded.
 * @param eventExecutor the executor to use to notify the listener {@code listener}.
 * @param future the future that is complete.
 * @param listener the listener to notify.
 */
protected static void notifyListener(
    EventExecutor eventExecutor, final Future<?> future, final GenericFutureListener<?> listener) {
  checkNotNull(eventExecutor, "eventExecutor");
  checkNotNull(future, "future");
  checkNotNull(listener, "listener");
  notifyListenerWithStackOverFlowProtection(eventExecutor, future, listener);
}
origin: wildfly/wildfly

/**
 * Notify a listener that a future has completed.
 * <p>
 * This method has a fixed depth of {@link #MAX_LISTENER_STACK_DEPTH} that will limit recursion to prevent
 * {@link StackOverflowError} and will stop notifying listeners added after this threshold is exceeded.
 * @param eventExecutor the executor to use to notify the listener {@code listener}.
 * @param future the future that is complete.
 * @param listener the listener to notify.
 */
protected static void notifyListener(
    EventExecutor eventExecutor, final Future<?> future, final GenericFutureListener<?> listener) {
  checkNotNull(eventExecutor, "eventExecutor");
  checkNotNull(future, "future");
  checkNotNull(listener, "listener");
  notifyListenerWithStackOverFlowProtection(eventExecutor, future, listener);
}
origin: io.netty/netty-common

/**
 * Notify a listener that a future has completed.
 * <p>
 * This method has a fixed depth of {@link #MAX_LISTENER_STACK_DEPTH} that will limit recursion to prevent
 * {@link StackOverflowError} and will stop notifying listeners added after this threshold is exceeded.
 * @param eventExecutor the executor to use to notify the listener {@code listener}.
 * @param future the future that is complete.
 * @param listener the listener to notify.
 */
protected static void notifyListener(
    EventExecutor eventExecutor, final Future<?> future, final GenericFutureListener<?> listener) {
  checkNotNull(eventExecutor, "eventExecutor");
  checkNotNull(future, "future");
  checkNotNull(listener, "listener");
  notifyListenerWithStackOverFlowProtection(eventExecutor, future, listener);
}
origin: apache/activemq-artemis

/**
 * Notify a listener that a future has completed.
 * <p>
 * This method has a fixed depth of {@link #MAX_LISTENER_STACK_DEPTH} that will limit recursion to prevent
 * {@link StackOverflowError} and will stop notifying listeners added after this threshold is exceeded.
 * @param eventExecutor the executor to use to notify the listener {@code listener}.
 * @param future the future that is complete.
 * @param listener the listener to notify.
 */
protected static void notifyListener(
    EventExecutor eventExecutor, final Future<?> future, final GenericFutureListener<?> listener) {
  checkNotNull(eventExecutor, "eventExecutor");
  checkNotNull(future, "future");
  checkNotNull(listener, "listener");
  notifyListenerWithStackOverFlowProtection(eventExecutor, future, listener);
}
origin: org.apache.activemq/artemis-jms-client-all

/**
 * Notify a listener that a future has completed.
 * <p>
 * This method has a fixed depth of {@link #MAX_LISTENER_STACK_DEPTH} that will limit recursion to prevent
 * {@link StackOverflowError} and will stop notifying listeners added after this threshold is exceeded.
 * @param eventExecutor the executor to use to notify the listener {@code listener}.
 * @param future the future that is complete.
 * @param listener the listener to notify.
 */
protected static void notifyListener(
    EventExecutor eventExecutor, final Future<?> future, final GenericFutureListener<?> listener) {
  checkNotNull(eventExecutor, "eventExecutor");
  checkNotNull(future, "future");
  checkNotNull(listener, "listener");
  notifyListenerWithStackOverFlowProtection(eventExecutor, future, listener);
}
origin: org.jboss.eap/wildfly-client-all

/**
 * Notify a listener that a future has completed.
 * <p>
 * This method has a fixed depth of {@link #MAX_LISTENER_STACK_DEPTH} that will limit recursion to prevent
 * {@link StackOverflowError} and will stop notifying listeners added after this threshold is exceeded.
 * @param eventExecutor the executor to use to notify the listener {@code listener}.
 * @param future the future that is complete.
 * @param listener the listener to notify.
 */
protected static void notifyListener(
    EventExecutor eventExecutor, final Future<?> future, final GenericFutureListener<?> listener) {
  checkNotNull(eventExecutor, "eventExecutor");
  checkNotNull(future, "future");
  checkNotNull(listener, "listener");
  notifyListenerWithStackOverFlowProtection(eventExecutor, future, listener);
}
io.netty.util.concurrentDefaultPromisenotifyListenerWithStackOverFlowProtection

Javadoc

The logic in this method should be identical to #notifyListeners() but cannot share code because the listener(s) cannot be cached for an instance of DefaultPromise since the listener(s) may be changed and is protected by a synchronized operation.

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

  • Updating database using SQL prepared statement
  • onCreateOptionsMenu (Activity)
  • requestLocationUpdates (LocationManager)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • KeyStore (java.security)
    This class represents an in-memory collection of keys and certificates. It manages two types of entr
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
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