Interface ExternalIdentityMonitor
-
- All Superinterfaces:
Monitor<ExternalIdentityMonitor>
- All Known Implementing Classes:
ExternalIdentityMonitorImpl
public interface ExternalIdentityMonitor extends Monitor<ExternalIdentityMonitor>
-
-
Field Summary
Fields Modifier and Type Field Description static ExternalIdentityMonitorNOOP
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voiddoneSyncExternalIdentity(long timeTakenNanos, @NotNull SyncResult result, int retryCount)Mark the successful completion ofSyncContext.sync(ExternalIdentity).default voiddoneSyncId(long timeTakenNanos, @NotNull SyncResult result)Mark the successful completion ofSyncContext.sync(String).default @NotNull Class<ExternalIdentityMonitor>getMonitorClass()default @NotNull Map<Object,Object>getMonitorProperties()default voidsyncFailed(@NotNull SyncException syncException)Mark the failure of a sync operation that resulted in the givenSyncException.
-
-
-
Field Detail
-
NOOP
static final ExternalIdentityMonitor NOOP
-
-
Method Detail
-
doneSyncExternalIdentity
default void doneSyncExternalIdentity(long timeTakenNanos, @NotNull @NotNull SyncResult result, int retryCount)Mark the successful completion ofSyncContext.sync(ExternalIdentity).- 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
default void doneSyncId(long timeTakenNanos, @NotNull @NotNull SyncResult result)Mark the successful completion ofSyncContext.sync(String).- Parameters:
timeTakenNanos- Time in nanoseconds spend to completeSyncContext.sync(String)result- The result of the sync operation.
-
syncFailed
default void syncFailed(@NotNull @NotNull SyncException syncException)Mark the failure of a sync operation that resulted in the givenSyncException.- Parameters:
syncException- The sync exception.
-
getMonitorClass
@NotNull default @NotNull Class<ExternalIdentityMonitor> getMonitorClass()
- Specified by:
getMonitorClassin interfaceMonitor<ExternalIdentityMonitor>- Returns:
- The type to be passed to
Whiteboard.register(Class, Object, Map)
-
getMonitorProperties
@NotNull default @NotNull Map<Object,Object> getMonitorProperties()
- Specified by:
getMonitorPropertiesin interfaceMonitor<ExternalIdentityMonitor>- Returns:
- The properties to be passed to
Whiteboard.register(Class, Object, Map)
-
-