Class ExecutionPool.Pulse

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

public abstract static class ExecutionPool.Pulse extends Object implements Delayed, Runnable
  • Constructor Details

    • Pulse

      protected Pulse(long delayNanos)
    • Pulse

      protected Pulse(long loadTimeNanos, long delayNanos)
  • Method Details

    • getLoadTimeNanos

      public long getLoadTimeNanos()
      Gets load time nanos.
      Returns:
      the load time nanos
    • getExpireTimeNanos

      public long getExpireTimeNanos()
      Gets expire time nanos.
      Returns:
      the expire time nanos
    • getDelay

      public final long getDelay(TimeUnit unit)
      Specified by:
      getDelay in interface Delayed
    • compareTo

      public final int compareTo(Delayed other)
      Specified by:
      compareTo in interface Comparable<Delayed>
    • equals

      public final boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object