Class PackageStatusWatcher
java.lang.Object
org.apache.sling.distribution.journal.impl.precondition.PackageStatusWatcher
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionPackageStatusWatcher
(org.apache.sling.distribution.journal.MessagingProvider messagingProvider, Topics topics) -
Method Summary
-
Constructor Details
-
Method Details
-
getStatus
public org.apache.sling.distribution.journal.messages.PackageStatusMessage.Status getStatus(String subAgentName, long pkgOffset) Gets the status that confirms the package at offset pkgOffset- Parameters:
pkgOffset
- the offset of the package- Returns:
- the status confirming the package; or null if it has not been confirmed yet
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-