Tabnine Logo
TerminableDelegationFuture
Code IndexAdd Tabnine to your IDE (free)

How to use
TerminableDelegationFuture
in
jadex.commons.future

Best Java code snippets using jadex.commons.future.TerminableDelegationFuture (Showing top 7 results out of 315)

origin: net.sourceforge.jadex/jadex-platform-base

  public void setException(Exception exception)
  {
    super.setExceptionIfUndone(exception);
  }
};
origin: org.activecomponents.jadex/jadex-commons

  /**
   *  Create a new listener.
   *  @param future The target future (to which is delegated).
   *  @param src The source future which is monitored.
   */
  public TerminableDelegationResultListener(TerminableDelegationFuture<E> future, ITerminableFuture<E> src)
  {
    super(future);
    future.setTerminationSource(src);
  }
}
origin: org.activecomponents.jadex/jadex-commons

/**
 *  Terminate the future.
 *  The exception will be set to FutureTerminatedException.
 */
public void terminate()
{
  terminate(new FutureTerminatedException());
}
 
origin: org.activecomponents.jadex/jadex-bridge

/**
 *  Overwritten to change result, if necessary.
 */
@Override
protected boolean	doSetResult(Object result, boolean undone)
{
  try
  {
    result = func.handleResult(result);
    return DelegatingTerminableDelegationFuture.super.doSetResult(result, func.isUndone(undone));
  }
  catch(Exception e)
  {
    return doSetException(e, func.isUndone(undone));
  }        
}
 
origin: org.activecomponents.jadex/jadex-bridge

ret = new TerminableDelegationFuture();
origin: org.activecomponents.jadex/jadex-platform

  public void setException(Exception exception)
  {
    super.setExceptionIfUndone(exception);
  }
};
origin: net.sourceforge.jadex/jadex-platform

  public void setException(Exception exception)
  {
    super.setExceptionIfUndone(exception);
  }
};
jadex.commons.futureTerminableDelegationFuture

Javadoc

A terminable delegation future can be used when a termination future should be delegated. This kind of future needs to be connected to the termination source (another delegation or a real future). Termination calls are forwarded to the termination source. The future remembers when terminate() was called in unconnected state and forwards the request as soon as the connection is established.

Most used methods

  • setExceptionIfUndone
  • <init>
    Create a new future.
  • doSetResult
  • setTerminationSource
    Set the termination source.
  • terminate
    Terminate the future and supply a custom reason.

Popular in Java

  • Reading from database using SQL prepared statement
  • getResourceAsStream (ClassLoader)
  • setScale (BigDecimal)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Path (java.nio.file)
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Top 12 Jupyter Notebook extensions
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