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

How to use
IPullIntermediateFuture
in
jadex.commons.future

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

origin: org.activecomponents.jadex/jadex-bridge

/**
 * 
 */
public DelegatingPullIntermediateDelegationFuture(IPullIntermediateFuture<?> src, FutureFunctionality func)
{
  if(func==null)
    throw new IllegalArgumentException("Func must not null.");
  this.func = func;
  src.addResultListener(new TerminableIntermediateDelegationResultListener(this, src));
}
origin: org.activecomponents.jadex/jadex-commons

  /**
   *  Pull an intermediate result.
   */
  public void pullIntermediateResult()
  {
    int mynotifycnt = 0;
    synchronized(this)
    {
      // Notify when someone has called terminate (notify is set)
      // src is set and not already notified
      notifycnt++;
      if(src!=null)
      {
        mynotifycnt = notifycnt;
        notifycnt = 0;
      }
    }
    
    for(int i=0; i<mynotifycnt; i++)
      ((IPullIntermediateFuture<E>)src).pullIntermediateResult();
  }
}
origin: org.activecomponents.jadex/jadex-commons

/**
 *  Possibly notify the termination source.
 */
protected void doNotify()
{
  super.doNotify();
  
  int mynotifycnt = 0;
  synchronized(this)
  {
    mynotifycnt = notifycnt;
    notifycnt = 0;
  }
  
  for(int i=0; i<mynotifycnt; i++)
    ((IPullIntermediateFuture<E>)src).pullIntermediateResult();
}
 
origin: net.sourceforge.jadex/jadex-bridge

/**
 * 
 */
public DelegatingPullIntermediateDelegationFuture(IPullIntermediateFuture<?> src, FutureFunctionality func)
{
  if(func==null)
    throw new IllegalArgumentException("Func must not null.");
  this.func = func;
  src.addResultListener(new TerminableIntermediateDelegationResultListener(this, src));
}
 
origin: org.activecomponents.jadex/jadex-platform

        public void run()
        {
          Object tfut = rsms.getProcessingCall(pullcallid);
          if(tfut!=null)
          {
//                        System.out.println("terminated future afterwards");
            if(tfut instanceof IPullIntermediateFuture)
            {
              ((IPullIntermediateFuture<?>)tfut).pullIntermediateResult();
            }
            else
            {
              ((IPullSubscriptionIntermediateFuture<?>)tfut).pullIntermediateResult();
            }
          }
        }
      });
origin: org.activecomponents.jadex/jadex-commons

/**
 *  Create a new future.
 */
public PullIntermediateDelegationFuture(IPullIntermediateFuture<?> src)
{
  src.addResultListener(new TerminableIntermediateDelegationResultListener(this, src));
}
 
origin: net.sourceforge.jadex/jadex-platform

        public void run()
        {
          Object tfut = rsms.getProcessingCall(pullcallid);
          if(tfut!=null)
          {
//                        System.out.println("terminated future afterwards");
            if(tfut instanceof IPullIntermediateFuture)
            {
              ((IPullIntermediateFuture<?>)tfut).pullIntermediateResult();
            }
            else
            {
              ((IPullSubscriptionIntermediateFuture<?>)tfut).pullIntermediateResult();
            }
          }
        }
      });
origin: net.sourceforge.jadex/jadex-platform

((IPullIntermediateFuture<?>)tfut).pullIntermediateResult();
origin: org.activecomponents.jadex/jadex-platform

((IPullIntermediateFuture<?>)tfut).pullIntermediateResult();
jadex.commons.futureIPullIntermediateFuture

Javadoc

Intermediate future with pull mechanism. Allows for pulling results by the caller. In this way a pull intermediate future is similar to an iterator.

Most used methods

  • addResultListener
  • pullIntermediateResult
    Pull an intermediate result.

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSupportFragmentManager (FragmentActivity)
  • findViewById (Activity)
  • startActivity (Activity)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Collectors (java.util.stream)
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • 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