Class ConcurrentHashHeap
java.lang.Object
com.lumiomedical.flow.impl.parallel.runtime.heap.ConcurrentHashHeap
- All Implemented Interfaces:
Heap
public class ConcurrentHashHeap extends Object implements Heap
- Author:
- Pierre Lecerf ([email protected]) on 23/07/15.
-
Constructor Summary
Constructors Constructor Description ConcurrentHashHeap()
-
Method Summary
Modifier and Type Method Description Object
consume(String id)
Object
consume(String id, int offset)
Collection<Object>
consumeAll(String id)
int
getNextStreamOffset(StreamGenerator node)
Generator
getStreamGenerator(StreamGenerator node)
boolean
has(String id)
boolean
has(String id, int offset)
Object
peek(String id)
Object
peek(String id, int offset)
Heap
push(String id, int offset, Object returnValue, int counter)
Heap
push(String id, Object returnValue, int counter)
-
Constructor Details
-
ConcurrentHashHeap
public ConcurrentHashHeap()
-
-
Method Details
-
push
-
has
-
peek
-
consume
-
getStreamGenerator
- Specified by:
getStreamGenerator
in interfaceHeap
- Returns:
-
getNextStreamOffset
- Specified by:
getNextStreamOffset
in interfaceHeap
- Returns:
-
push
-
has
-
peek
-
consume
-
consumeAll
- Specified by:
consumeAll
in interfaceHeap
- Returns:
-