public static interface BeaconDetector.BeaconListener
Modifier and Type | Method and Description |
---|---|
void |
beaconReceived(java.net.InetSocketAddress serverAddress,
boolean regularBeacon)
Called when a beacon is received.
|
void beaconReceived(java.net.InetSocketAddress serverAddress, boolean regularBeacon)
serverAddress
- IP address and port number of the server that sent the
beacon message (never null
). This can be used
to detect which server triggered the anomaly when the same
listener is registered for multiple addresses.regularBeacon
- true
if this beacon was expected and arrived
at the expected point in time. false
if the
beacon was unexpected (e.g. because it was the first
beacon or because it was significantly delayed or early).
If false
, a component maintaining a
connection to the server might want to verify that the
connection is still working.Copyright © 2014–2018 aquenos GmbH. All rights reserved.