| Constructor and Description |
|---|
NMEASampler(NMEADispatcher dispatcher,
long offerTimeout,
long takeTimeout,
TimeUnit timeUnit,
java.util.function.Consumer<NMEASampler> initializer,
String... properties) |
NMEASampler(NMEADispatcher dispatcher,
String... properties)
Creates new NMEASampler and add's it as observer to dispatcher.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addProperties(String... properties)
Add offer properties to running set.
|
void |
commit(String reason) |
String[] |
getPrefixes() |
protected void |
init() |
void |
removeProperties(String... properties)
Removes observers from running set.
|
void |
rollback(String reason) |
void |
run() |
void |
set(String property,
float arg) |
void |
set(String property,
Object arg) |
void |
start(String reason) |
java.util.stream.Stream<NMEASample> |
stream()
Creates a stream from observer.
|
public NMEASampler(NMEADispatcher dispatcher, String... properties)
dispatcher - properties - Observed properties. Properties 'clock', 'messageType'
and 'talkerId' are always included. (but can be included)public NMEASampler(NMEADispatcher dispatcher, long offerTimeout, long takeTimeout, TimeUnit timeUnit, java.util.function.Consumer<NMEASampler> initializer, String... properties)
protected void init()
public void addProperties(String... properties)
properties - public void removeProperties(String... properties)
properties - public java.util.stream.Stream<NMEASample> stream()
public void start(String reason)
start in interface org.vesalainen.util.Transactionalstart in class org.vesalainen.code.AbstractPropertySetterpublic void commit(String reason)
commit in interface org.vesalainen.util.Transactionalcommit in class org.vesalainen.code.AbstractPropertySetterpublic void rollback(String reason)
rollback in interface org.vesalainen.util.Transactionalrollback in class org.vesalainen.code.AbstractPropertySetterpublic void set(String property, Object arg)
set in interface org.vesalainen.code.PropertySetterset in class org.vesalainen.code.AbstractPropertySetterpublic void set(String property, float arg)
set in interface org.vesalainen.code.PropertySetterset in class org.vesalainen.code.AbstractPropertySetterpublic final String[] getPrefixes()
getPrefixes in interface org.vesalainen.code.PropertySettergetPrefixes in class org.vesalainen.code.AbstractPropertySetterCopyright © 2017. All rights reserved.