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, INCREMENTAL_SYNC_EVENTS_BATCH_LIMIT_PREFIX, incrementalSyncDataFetcher, journalService, logger, permissionManager, scopesRequestCacheDelegate, subscriptionJournalStateStore
-
Constructor Summary
ConstructorsConstructorDescriptionContentManagementIncrementalSyncServiceImpl
(JournalServiceInternal journalService, SubscriptionJournalStateStore subscriptionJournalStateStore, com.atlassian.core.util.Clock clock, PermissionManager permissionManager, IncrementalSyncDataFetcher<ContentManagementIncSyncModel> incrementalSyncDataFetcher, ScopesRequestCacheDelegate scopesRequestCacheDelegate) -
Method Summary
Modifier and TypeMethodDescriptionint
Get max size of the events batch, that can be handled by the incremental sync serviceprotected SingleSubscriptionPerJournalIdentifier
getJournalIdentifier
(long subscriptionId) protected String
Collection<? extends JournalIdentifier>
Return all Journal Entry names which is managed by this service including all deleted Subscriptionprotected String
<E> void
handleEventForSubscription
(E event, Consumer<JournalIdentifier> processor) Based on input event this method will find a corresponding subscription which would like to handle it.Register to incremental apiMethods inherited from class com.atlassian.confluence.internal.api.impl.service.incrementalsync.AbstractIncrementalSyncService
cleanObsoleteData, cleanUpSubscriptions, getAvailableSubscriptions, getMostRecentCursor, isSubscriptionActive, processEvents, unsubscribe, verifyAdminUserOrManageSubscriptionScope, verifyAdminUserOrReadAllScope
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.confluence.internal.api.service.incrementalsync.IncrementalSyncService
cleanUpSubscriptions, getAvailableSubscriptions, getMostRecentCursor, isSubscriptionActive, processEvents, 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, ScopesRequestCacheDelegate scopesRequestCacheDelegate)
-
-
Method Details
-
subscribe
Description copied from interface:IncrementalSyncService
Register to incremental api- Specified by:
subscribe
in interfaceIncrementalSyncService<ContentSubscriptionSpec,
ContentManagementIncSyncModel> - Overrides:
subscribe
in classAbstractIncrementalSyncService<ContentSubscriptionSpec,
ContentManagementIncSyncModel> - Parameters:
spec
- the specification- Returns:
- an unique id
-
getSubscriptionData
- Specified by:
getSubscriptionData
in classAbstractIncrementalSyncService<ContentSubscriptionSpec,
ContentManagementIncSyncModel>
-
getJournalName
- Specified by:
getJournalName
in classAbstractIncrementalSyncService<ContentSubscriptionSpec,
ContentManagementIncSyncModel>
-
getJournalIdentifier
- Specified by:
getJournalIdentifier
in classAbstractIncrementalSyncService<ContentSubscriptionSpec,
ContentManagementIncSyncModel>
-
getManagedJournalIdentifier
Description copied from interface:IncrementalSyncCleaner
Return all Journal Entry names which is managed by this service including all deleted Subscription- Specified by:
getManagedJournalIdentifier
in interfaceIncrementalSyncCleaner
- Returns:
-
handleEventForSubscription
Description copied from interface:IncrementalSyncService
Based 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:
handleEventForSubscription
in interfaceIncrementalSyncService<ContentSubscriptionSpec,
ContentManagementIncSyncModel> - Overrides:
handleEventForSubscription
in classAbstractIncrementalSyncService<ContentSubscriptionSpec,
ContentManagementIncSyncModel> - Type Parameters:
E
- an event
-
getEventsBatchLimit
public int getEventsBatchLimit()Description copied from interface:IncrementalSyncService
Get max size of the events batch, that can be handled by the incremental sync service- Specified by:
getEventsBatchLimit
in interfaceIncrementalSyncService<ContentSubscriptionSpec,
ContentManagementIncSyncModel> - Returns:
- max size of the events batch, that can be handled by the incremental sync service
-