Class ExternalIdentityMonitorImpl
- java.lang.Object
-
- org.apache.jackrabbit.oak.spi.security.authentication.external.impl.monitor.ExternalIdentityMonitorImpl
-
- All Implemented Interfaces:
ExternalIdentityMonitor
,Monitor<ExternalIdentityMonitor>
public class ExternalIdentityMonitorImpl extends java.lang.Object implements ExternalIdentityMonitor
-
-
Field Summary
-
Fields inherited from interface org.apache.jackrabbit.oak.spi.security.authentication.external.impl.monitor.ExternalIdentityMonitor
NOOP
-
-
Constructor Summary
Constructors Constructor Description ExternalIdentityMonitorImpl(@NotNull StatisticsProvider statisticsProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doneSyncExternalIdentity(long timeTakenNanos, @NotNull SyncResult result, int retryCount)
Mark the successful completion ofSyncContext.sync(ExternalIdentity)
.void
doneSyncId(long timeTakenNanos, @NotNull SyncResult result)
Mark the successful completion ofSyncContext.sync(String)
.void
syncFailed(@NotNull SyncException syncException)
Mark the failure of a sync operation that resulted in the givenSyncException
.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.jackrabbit.oak.spi.security.authentication.external.impl.monitor.ExternalIdentityMonitor
getMonitorClass, getMonitorProperties
-
-
-
-
Constructor Detail
-
ExternalIdentityMonitorImpl
public ExternalIdentityMonitorImpl(@NotNull @NotNull StatisticsProvider statisticsProvider)
-
-
Method Detail
-
doneSyncExternalIdentity
public void doneSyncExternalIdentity(long timeTakenNanos, @NotNull @NotNull SyncResult result, int retryCount)
Description copied from interface:ExternalIdentityMonitor
Mark the successful completion ofSyncContext.sync(ExternalIdentity)
.- Specified by:
doneSyncExternalIdentity
in interfaceExternalIdentityMonitor
- Parameters:
timeTakenNanos
- Time in nanoseconds spend to completeSyncContext.sync(ExternalIdentity)
result
- The result of the sync operation.retryCount
- The number of retries needed to complete the sync.
-
doneSyncId
public void doneSyncId(long timeTakenNanos, @NotNull @NotNull SyncResult result)
Description copied from interface:ExternalIdentityMonitor
Mark the successful completion ofSyncContext.sync(String)
.- Specified by:
doneSyncId
in interfaceExternalIdentityMonitor
- Parameters:
timeTakenNanos
- Time in nanoseconds spend to completeSyncContext.sync(String)
result
- The result of the sync operation.
-
syncFailed
public void syncFailed(@NotNull @NotNull SyncException syncException)
Description copied from interface:ExternalIdentityMonitor
Mark the failure of a sync operation that resulted in the givenSyncException
.- Specified by:
syncFailed
in interfaceExternalIdentityMonitor
- Parameters:
syncException
- The sync exception.
-
-