org.curjent.impl.agent
Class ProxyInfo

java.lang.Object
  extended by org.curjent.impl.agent.ProxyInfo

final class ProxyInfo
extends Object

Cached information needed to create a new proxy instance. This includes the proxy's constructor and any additional runtime information needed to initialize new proxies.

See Also:
ProxyFactory

Field Summary
(package private)  int acceptedCapacity
          Value from Capacity.accepted() or Integer.MAX_VALUE.
(package private)  CallInfo[] calls
          Runtime call site information for each interface method.
(package private)  boolean capacityAnnotation
          true if the task's type is annotated with Capacity.
(package private)  Constructor<?> constructor
          Proxy's constructor.
(package private)  long expirationTimeout
          Value from Expiration.timeout() or Expirations.NIL.
(package private)  TimeUnit expirationUnit
          Value from Expiration.unit() or TimeUnit.NANOSECONDS.
(package private)  int pendingCapacity
          Value from Capacity.pending() or Integer.MAX_VALUE.
(package private)  long pendingTimeout
          Value from Capacity.timeout() or Long.MAX_VALUE.
(package private)  TimeUnit pendingUnit
          Value from Capacity.unit() or TimeUnit.NANOSECONDS.
 
Constructor Summary
ProxyInfo(Constructor<?> constructor, TypeInfo typeInfo)
          Saves the constructor and extracts any additional runtime information needed to initialize new proxy instances.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

calls

final CallInfo[] calls
Runtime call site information for each interface method.


constructor

final Constructor<?> constructor
Proxy's constructor.


capacityAnnotation

final boolean capacityAnnotation
true if the task's type is annotated with Capacity.


acceptedCapacity

final int acceptedCapacity
Value from Capacity.accepted() or Integer.MAX_VALUE.


pendingCapacity

final int pendingCapacity
Value from Capacity.pending() or Integer.MAX_VALUE.


pendingTimeout

final long pendingTimeout
Value from Capacity.timeout() or Long.MAX_VALUE.


pendingUnit

final TimeUnit pendingUnit
Value from Capacity.unit() or TimeUnit.NANOSECONDS.


expirationTimeout

final long expirationTimeout
Value from Expiration.timeout() or Expirations.NIL.


expirationUnit

final TimeUnit expirationUnit
Value from Expiration.unit() or TimeUnit.NANOSECONDS.

Constructor Detail

ProxyInfo

ProxyInfo(Constructor<?> constructor,
          TypeInfo typeInfo)
Saves the constructor and extracts any additional runtime information needed to initialize new proxy instances.



Copyright 2009-2011 Tom Landon
Apache License 2.0