public class ExchangeStatesTask
A task that utilizes a given (and connected) IBlaubotConnection to exchange the given State with the
The remote endpoint is the BlaubotBeaconService's BeaconConnectionHandler-Runnable.
This task does the whole beacon exchange heavy lifting and can be reused in other beacon implementations.
If the exchange is successful, the IBlaubotDiscoveryEventListener is informed about the discovered state of
the remote endpoint.
After the execution the connection is closed.