Class PackageStatusWatcher
- java.lang.Object
-
- org.apache.sling.distribution.journal.impl.precondition.PackageStatusWatcher
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class PackageStatusWatcher extends Object implements Closeable
-
-
Constructor Summary
Constructors Constructor Description PackageStatusWatcher(org.apache.sling.distribution.journal.MessagingProvider messagingProvider, Topics topics)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
org.apache.sling.distribution.journal.messages.PackageStatusMessage.Status
getStatus(String subAgentName, long pkgOffset)
Gets the status that confirms the package at offset pkgOffset
-
-
-
Constructor Detail
-
PackageStatusWatcher
public PackageStatusWatcher(org.apache.sling.distribution.journal.MessagingProvider messagingProvider, Topics topics)
-
-
Method Detail
-
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
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-