public class SleepIfFullStrategy extends Object implements PipeElementInsertionStrategy
Constructor and Description |
---|
SleepIfFullStrategy() |
Modifier and Type | Method and Description |
---|---|
void |
add(IPipe<?> pipe,
Object element)
Adds the given element to the given pipe.
|
int |
getNumWaits() |
public void add(IPipe<?> pipe, Object element)
PipeElementInsertionStrategy
add
in interface PipeElementInsertionStrategy
pipe
- to be usedelement
- to be addedpublic int getNumWaits()
Copyright © 2015–2020. All rights reserved.