Solution_
- the solution type, the class with the PlanningSolution
annotationpublic class PartitionQueue<Solution_> extends Object implements Iterable<PartitionChangeMove<Solution_>>
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
logger |
Constructor and Description |
---|
PartitionQueue(int partCount) |
Modifier and Type | Method and Description |
---|---|
void |
addExceptionThrown(int partIndex,
Throwable throwable)
This method is thread-safe.
|
void |
addFinish(int partIndex,
long partCalculationCount)
This method is thread-safe.
|
void |
addMove(int partIndex,
PartitionChangeMove<Solution_> move)
This method is thread-safe.
|
long |
getPartsCalculationCount() |
Iterator<PartitionChangeMove<Solution_>> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public void addMove(int partIndex, PartitionChangeMove<Solution_> move)
partIndex
- 0 <= partIndex < partCount
move
- never nullBlockingQueue.add(Object)
public void addFinish(int partIndex, long partCalculationCount)
partIndex
- 0 <= partIndex < partCount
partCalculationCount
- at least 0BlockingQueue.add(Object)
public void addExceptionThrown(int partIndex, Throwable throwable)
partIndex
- 0 <= partIndex < partCount
throwable
- never nullBlockingQueue.add(Object)
public Iterator<PartitionChangeMove<Solution_>> iterator()
iterator
in interface Iterable<PartitionChangeMove<Solution_>>
public long getPartsCalculationCount()
Copyright © 2006–2018 JBoss by Red Hat. All rights reserved.