public interface PAPServer
Modifier and Type | Interface and Description |
---|---|
static class |
PAPServer.Abstract
Abstract.
|
Modifier and Type | Method and Description |
---|---|
void |
addPointValue(PointValue pointValue)
Adds a point value.
|
Optional<PAPProxy.Responder> |
getResponder()
Gets the responder.
|
Logger |
getThisLogger()
Gets the logger.
|
boolean |
isUpdating()
Asks if we are currently updating.
|
Optional<PointValue> |
nextUpdate(long timeout)
Returns the next update.
|
void |
setResponder(PAPProxy.Responder responder)
Sets the responder.
|
boolean |
setUp(KeyedGroups serverProperties)
Sets up.
|
boolean |
setUpListener(KeyedGroups listenerProperties)
Sets up a listener.
|
void |
start()
Starts.
|
void |
stop()
Stops.
|
void |
tearDown()
Tears down what has been set up.
|
void addPointValue(@Nonnull PointValue pointValue)
pointValue
- The point value.@Nonnull @CheckReturnValue Optional<PAPProxy.Responder> getResponder()
@Nonnull @CheckReturnValue Logger getThisLogger()
@CheckReturnValue boolean isUpdating()
@Nonnull @CheckReturnValue Optional<PointValue> nextUpdate(long timeout) throws InterruptedException
timeout
- A time limit in millis to wait for a point value (negative
for infinite).InterruptedException
- When interrupted.void setResponder(@Nonnull PAPProxy.Responder responder)
responder
- The responder.@CheckReturnValue boolean setUp(@Nonnull KeyedGroups serverProperties)
serverProperties
- The protocol specific server properties.@CheckReturnValue boolean setUpListener(@Nonnull KeyedGroups listenerProperties)
listenerProperties
- The listener properties.void start()
void stop()
void tearDown()
Copyright © 2003-2019 Serge Brisson. All Rights Reserved.