Interface SynchronizerManager


  • public interface SynchronizerManager
    Represents a manager of the synchronizers.
    Since:
    8.0
    Author:
    Maxim Podkolzine (maxim.podkolzine@jetbrains.com)
    See Also:
    Synchronizer
    • Method Detail

      • createOrUpdateSynchronizer

        @NotNull
        Synchronizer createOrUpdateSynchronizer​(@NotNull
                                                SynchronizerInfo info,
                                                @NotNull
                                                RemoteDataFetcher fetcher,
                                                @NotNull
                                                SynchronizerOptions options,
                                                @NotNull
                                                SynchronizerStatistics statistics,
                                                @Nullable
                                                UserRemoteIdProvider userRemoteIdProvider,
                                                @Nullable
                                                UserGroupRemoteIdProvider userGroupRemoteIdProvider,
                                                @NotNull
                                                com.intellij.openapi.diagnostic.Logger logger)
        Creates (or updates if already exists) a synchronizer.

        Update means that the new synchronizer with provided parameters (info, fetcher, options, statistics, logger) will replace the existing one with the same name (see SynchronizerInfo.getOwnerName()).

        Parameters:
        info - a synchronizer info
        fetcher - a remote data fetcher
        options - synchronizer options
        statistics - synchronizer statistics
        userRemoteIdProvider - user remote id provider; if null, then users are matched by username
        logger - a logger
        Returns:
        a synchronizer
        Since:
        9.0
      • removeSynchronizer

        void removeSynchronizer​(@NotNull
                                Synchronizer synchronizer)
        Removes the synchronizer if it is present in the manager.
        Parameters:
        synchronizer - the synchronizer to remove