Class ContentManagementIncrementalSyncServiceImpl
java.lang.Object
com.atlassian.confluence.internal.api.impl.service.incrementalsync.AbstractIncrementalSyncService<ContentSubscriptionSpec,ContentManagementIncSyncModel>
com.atlassian.confluence.internal.api.impl.service.incrementalsync.contentmanagement.ContentManagementIncrementalSyncServiceImpl
- All Implemented Interfaces:
ContentManagementIncrementalSyncService,IncrementalSyncCleaner,IncrementalSyncService<ContentSubscriptionSpec,ContentManagementIncSyncModel>
public class ContentManagementIncrementalSyncServiceImpl
extends AbstractIncrementalSyncService<ContentSubscriptionSpec,ContentManagementIncSyncModel>
implements ContentManagementIncrementalSyncService
Service class for managing content event related incremental sync operations with Bandana store.
- Since:
- 9.3.0
-
Field Summary
FieldsFields inherited from class com.atlassian.confluence.internal.api.impl.service.incrementalsync.AbstractIncrementalSyncService
clock, incrementalSyncDataFetcher, journalService, logger, permissionManager, subscriptionJournalStateStore -
Constructor Summary
ConstructorsConstructorDescriptionContentManagementIncrementalSyncServiceImpl(JournalServiceInternal journalService, SubscriptionJournalStateStore subscriptionJournalStateStore, com.atlassian.core.util.Clock clock, PermissionManager permissionManager, IncrementalSyncDataFetcher<ContentManagementIncSyncModel> incrementalSyncDataFetcher) -
Method Summary
Modifier and TypeMethodDescriptionprotected JournalIdentifierprotected StringCollection<? extends JournalIdentifier>Return all Journal Entry names which is managed by this service including all deleted Subscriptionprotected String<T> voidhandleEventForSubscription(T event, Consumer<JournalIdentifier> processor) Based on input event this method will find a corresponding subscription which would like to handle it.Methods inherited from class com.atlassian.confluence.internal.api.impl.service.incrementalsync.AbstractIncrementalSyncService
cleanObsoleteData, cleanUpSubscriptions, getAvailableSubscriptions, isSubscriptionActive, processEvents, subscribe, unsubscribe, verifyAdminUserMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.confluence.internal.api.service.incrementalsync.IncrementalSyncService
cleanUpSubscriptions, getAvailableSubscriptions, isSubscriptionActive, processEvents, subscribe, unsubscribe
-
Field Details
-
CONTENT_MANAGEMENT_INC_SYNC_JOURNAL_NAME
- See Also:
-
-
Constructor Details
-
ContentManagementIncrementalSyncServiceImpl
public ContentManagementIncrementalSyncServiceImpl(JournalServiceInternal journalService, SubscriptionJournalStateStore subscriptionJournalStateStore, com.atlassian.core.util.Clock clock, PermissionManager permissionManager, IncrementalSyncDataFetcher<ContentManagementIncSyncModel> incrementalSyncDataFetcher)
-
-
Method Details
-
getSubscriptionData
- Specified by:
getSubscriptionDatain classAbstractIncrementalSyncService<ContentSubscriptionSpec,ContentManagementIncSyncModel>
-
getJournalName
- Specified by:
getJournalNamein classAbstractIncrementalSyncService<ContentSubscriptionSpec,ContentManagementIncSyncModel>
-
getJournalIdentifier
- Specified by:
getJournalIdentifierin classAbstractIncrementalSyncService<ContentSubscriptionSpec,ContentManagementIncSyncModel>
-
getManagedJournalIdentifier
Description copied from interface:IncrementalSyncCleanerReturn all Journal Entry names which is managed by this service including all deleted Subscription- Specified by:
getManagedJournalIdentifierin interfaceIncrementalSyncCleaner- Returns:
-
handleEventForSubscription
Description copied from interface:IncrementalSyncServiceBased on input event this method will find a corresponding subscription which would like to handle it. Then will trigger the call back to handle that- Specified by:
handleEventForSubscriptionin interfaceIncrementalSyncService<ContentSubscriptionSpec,ContentManagementIncSyncModel> - Overrides:
handleEventForSubscriptionin classAbstractIncrementalSyncService<ContentSubscriptionSpec,ContentManagementIncSyncModel> - Type Parameters:
T- an event
-