Class ParallelCollector.SlotPair<T>

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    ParallelCollector<T,​A,​R>

    static final class ParallelCollector.SlotPair<T>
    extends java.util.concurrent.atomic.AtomicInteger
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) T first  
      (package private) java.util.concurrent.atomic.AtomicInteger releaseIndex  
      (package private) T second  
      private static long serialVersionUID  
    • Constructor Summary

      Constructors 
      Constructor Description
      SlotPair()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) boolean releaseSlot()  
      (package private) int tryAcquireSlot()  
      • Methods inherited from class java.util.concurrent.atomic.AtomicInteger

        accumulateAndGet, addAndGet, compareAndExchange, compareAndExchangeAcquire, compareAndExchangeRelease, compareAndSet, decrementAndGet, doubleValue, floatValue, get, getAcquire, getAndAccumulate, getAndAdd, getAndDecrement, getAndIncrement, getAndSet, getAndUpdate, getOpaque, getPlain, incrementAndGet, intValue, lazySet, longValue, set, setOpaque, setPlain, setRelease, toString, updateAndGet, weakCompareAndSet, weakCompareAndSetAcquire, weakCompareAndSetPlain, weakCompareAndSetRelease, weakCompareAndSetVolatile
      • Methods inherited from class java.lang.Number

        byteValue, shortValue
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • first

        T first
      • second

        T second
      • releaseIndex

        final java.util.concurrent.atomic.AtomicInteger releaseIndex
    • Constructor Detail

      • SlotPair

        SlotPair()
    • Method Detail

      • tryAcquireSlot

        int tryAcquireSlot()
      • releaseSlot

        boolean releaseSlot()