Merge registration methods for clients and hooks.

This commit is contained in:
akwizgran
2018-04-18 11:16:49 +01:00
parent 57a6c8cb3a
commit f25fbc5b94
7 changed files with 14 additions and 46 deletions

View File

@@ -22,17 +22,11 @@ public interface ClientVersioningManager {
int MAJOR_VERSION = 0;
/**
* Registers a client that will be advertised to contacts. This method
* should be called before {@link LifecycleManager#startServices(String)}.
* Registers a client that will be advertised to contacts. The hook will
* be called when the visibility of the client changes. This method should
* be called before {@link LifecycleManager#startServices(String)}.
*/
void registerClient(ClientId clientId, int majorVersion, int minorVersion);
/**
* Registers a hook that will be called when the visibility of the given
* client changes. This method should be called before
* {@link LifecycleManager#startServices(String)}.
*/
void registerClientVersioningHook(ClientId clientId, int majorVersion,
void registerClient(ClientId clientId, int majorVersion, int minorVersion,
ClientVersioningHook hook);
/**