T
- Data type of signalpublic class Signal<T>
extends java.lang.Object
E.g. Stream.of(5,5,5,5,5,5,5,6,1,2,3,5,5,5,5) Results in Stream.of(5,6,1,2,3,5)
Constructor and Description |
---|
Signal(Adapter<T> continuous,
Adapter<T> discrete)
Construct a new Signal
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close this Signal
|
void |
fromStream(java.util.stream.Stream<T> stream) |
static <T> Signal<T> |
queueBackedSignal() |
T |
set(T newValue)
Set the current value of this signal
|
static <T> Signal<T> |
topicBackedSignal() |
public static <T> Signal<T> queueBackedSignal()
public static <T> Signal<T> topicBackedSignal()
public void fromStream(java.util.stream.Stream<T> stream)
stream
- Populate this Signal from a Streampublic T set(T newValue)
newValue
- Replacement valuepublic void close()