All Packages  This Package  Class Hierarchy  Class Search  Index

Class edu.utah.janos.antsr.core.PendingRequest
java.lang.Object
   |
   +----edu.utah.janos.antsr.core.NodeCache.EventHandler
           |
           +----edu.utah.janos.antsr.core.PendingRequest

  Summary

class  PendingRequest
     extends edu.utah.janos.antsr.core.NodeCache.EventHandler
{
          // Fields 5
     private Capsule cap;
     private static final int defaultRetryCount;
     private static final int defaultRetryTime;
     private int retries;
     private int ttl;

          // Constructors 1
     public PendingRequest(Capsule);

          // Methods 2
     public int collected();
     public Capsule getCapsule();
}

Used to track request capsules that are still need a response.




  Fields

· cap

Summary  |  Top

   private Capsule cap

The request capsule


· defaultRetryTime

Summary  |  Top
   private static final int defaultRetryTime

Amount of time to wait before retrying


· defaultRetryCount

Summary  |  Top
   private static final int defaultRetryCount

The number of times to retry


· ttl

Summary  |  Top
   private int ttl

The ttl to reprime the capsule with, this increases with each retries to make sure we can get the thing out.


· retries

Summary  |  Top
   private int retries

The number of times left to retry sending the capsule.


  Constructors

· PendingRequest

Summary  |  Top

   public PendingRequest(Capsule cap) 

Construct a pending request for this capsule



  Methods

· getCapsule

Summary  |  Top
   public Capsule getCapsule() 

Return the request capsule



· collected

Summary  |  Top
   public int collected() 

Event handler called by NodeCache when we're being collected. This just checks if we have any retries left and sends the capsule if we do.

Overrides:
collected in class NodeCache.EventHandler


All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7