public abstract static class Notifier.Abstract extends Object implements Notifier
Notifier.Abstract| Modifier and Type | Field and Description |
|---|---|
static String |
NOTIFIED_TRACES
Traces subdirectory for notified values.
|
| Constructor and Description |
|---|
Abstract() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addTime(long time)
Adds time.
|
void |
close()
Closes this notifier.
|
void |
commit()
Commits the pending notices.
|
protected abstract boolean |
doNotify(PointValue pointValue)
Does notify of a new Point value.
|
protected int |
getNoticeCount()
Gets the notices count.
|
protected StoreServiceAppImpl |
getStoreAppImpl()
Gets the store application implementation.
|
protected Logger |
getThisLogger()
Gets the logger.
|
protected boolean |
isClosed()
Asks if this notifier is closed.
|
boolean |
join()
Joins whatever thread set up by this notifier.
|
void |
notify(PointValue pointValue)
Notifies of a new Point value.
|
void |
setFilter(Optional<Collection<Point>> noticesFilter)
Sets the filter.
|
boolean |
setUp(StoreServiceAppImpl storeAppImpl)
Sets up for processing.
|
void |
start()
Starts this.
|
void |
tearDown()
Tears down what has been set up.
|
public static final String NOTIFIED_TRACES
public void commit()
throws InterruptedException
commit in interface NoticeListenerInterruptedException - When the Service is stopped.public boolean join()
public final void notify(PointValue pointValue) throws InterruptedException
notify in interface NoticeListenerpointValue - The Point value.InterruptedException - When the Service is stopped.public final void setFilter(Optional<Collection<Point>> noticesFilter)
public boolean setUp(StoreServiceAppImpl storeAppImpl)
public void tearDown()
protected final void addTime(long time)
time - The time increment in nanoseconds.@CheckReturnValue
protected abstract boolean doNotify(@Nonnull
PointValue pointValue)
throws InterruptedException
pointValue - The Point value.InterruptedException - When the Service is stopped.@CheckReturnValue protected final int getNoticeCount()
@Nonnull @CheckReturnValue protected final StoreServiceAppImpl getStoreAppImpl()
@Nonnull @CheckReturnValue protected final Logger getThisLogger()
@CheckReturnValue protected boolean isClosed()
Copyright © 2003-2019 Serge Brisson. All Rights Reserved.