Interface Heap
- All Known Implementing Classes:
ConcurrentHashHeap
,HashHeap
public interface Heap
- Author:
- Pierre Lecerf ([email protected]) on 23/07/2015.
-
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)
-
Method Details
-
push
- Parameters:
id
- StringreturnValue
- Objectcounter
-
-
has
- Parameters:
id
- String- Returns:
- boolean
-
peek
- Parameters:
id
- String- Returns:
- Object
-
consume
- Parameters:
id
-- Returns:
-
getStreamGenerator
- Parameters:
node
-- Returns:
-
getNextStreamOffset
- Parameters:
node
-- Returns:
-
push
- Parameters:
id
-offset
-returnValue
-counter
-- Returns:
-
has
- Parameters:
id
-offset
-- Returns:
- boolean
-
peek
- Parameters:
id
-offset
-- Returns:
- Object
-
consume
- Parameters:
id
-offset
-- Returns:
-
consumeAll
- Parameters:
id
-- Returns:
-