org.ofbiz.base.concurrent
Class ExecutionPool.Pulse

java.lang.Object
  extended by org.ofbiz.base.concurrent.ExecutionPool.Pulse
All Implemented Interfaces:
java.lang.Comparable<java.util.concurrent.Delayed>, java.lang.Runnable, java.util.concurrent.Delayed
Direct Known Subclasses:
CacheLine, TTLObject.Pulse
Enclosing class:
ExecutionPool

public abstract static class ExecutionPool.Pulse
extends java.lang.Object
implements java.util.concurrent.Delayed, java.lang.Runnable


Field Summary
protected  long expireTimeNanos
           
protected  long loadTimeNanos
           
 
Constructor Summary
protected ExecutionPool.Pulse(long delayNanos)
           
protected ExecutionPool.Pulse(long loadTimeNanos, long delayNanos)
           
 
Method Summary
 int compareTo(java.util.concurrent.Delayed other)
           
 long getDelay(java.util.concurrent.TimeUnit unit)
           
 long getExpireTimeNanos()
           
 long getLoadTimeNanos()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.lang.Runnable
run
 

Field Detail

expireTimeNanos

protected final long expireTimeNanos

loadTimeNanos

protected final long loadTimeNanos
Constructor Detail

ExecutionPool.Pulse

protected ExecutionPool.Pulse(long delayNanos)

ExecutionPool.Pulse

protected ExecutionPool.Pulse(long loadTimeNanos,
                              long delayNanos)
Method Detail

getLoadTimeNanos

public long getLoadTimeNanos()

getExpireTimeNanos

public long getExpireTimeNanos()

getDelay

public final long getDelay(java.util.concurrent.TimeUnit unit)
Specified by:
getDelay in interface java.util.concurrent.Delayed

compareTo

public final int compareTo(java.util.concurrent.Delayed other)
Specified by:
compareTo in interface java.lang.Comparable<java.util.concurrent.Delayed>