mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-20 04:35:32 +00:00
bug4006: started to introduce a ReplicationStartingListener on ReplicationService
This commit is contained in:
+13
@@ -113,7 +113,20 @@ public interface ReplicationService {
|
||||
*/
|
||||
ReplicationReceiver getReplicator();
|
||||
|
||||
/**
|
||||
* An update to this attribute can be observed by registering a {@link ReplicationStartingListener} using
|
||||
* the {@link #addReplicationStartingListener} method.
|
||||
*/
|
||||
void setReplicationStarting(boolean b);
|
||||
|
||||
@FunctionalInterface
|
||||
public static interface ReplicationStartingListener {
|
||||
void onReplicationStartingChanged(boolean newReplicationStartingValue);
|
||||
}
|
||||
|
||||
void addReplicationStartingListener(ReplicationStartingListener listener);
|
||||
|
||||
void removeReplicationStartingListener(ReplicationStartingListener listener);
|
||||
|
||||
/**
|
||||
* @return {@code true} if replication is starting; during this phase it is clear that the replicables managed by
|
||||
|
||||
Reference in New Issue
Block a user