public class UserDirectoryConnectionServiceImpl extends Object implements UserDirectoryConnectionService
UserDirectoryConnectionService
.Constructor and Description |
---|
UserDirectoryConnectionServiceImpl(com.atlassian.crowd.embedded.api.CrowdDirectoryService crowdDirectoryService,
com.atlassian.crowd.directory.loader.DirectoryInstanceLoader directoryInstanceLoader,
java.time.Clock clock) |
Modifier and Type | Method and Description |
---|---|
java.util.stream.Stream<com.atlassian.crowd.embedded.api.Directory> |
findAllActiveExternalDirectories()
Returns all external and active directories.
|
boolean |
getConnectionState(com.atlassian.crowd.embedded.api.Directory directory)
Checks connection state of a user directory.
|
Optional<java.time.Duration> |
getLatency(com.atlassian.crowd.embedded.api.Directory directory)
Checks latency of a user directory.
|
public UserDirectoryConnectionServiceImpl(com.atlassian.crowd.embedded.api.CrowdDirectoryService crowdDirectoryService, com.atlassian.crowd.directory.loader.DirectoryInstanceLoader directoryInstanceLoader, java.time.Clock clock)
public boolean getConnectionState(com.atlassian.crowd.embedded.api.Directory directory)
getConnectionState
in interface UserDirectoryConnectionService
directory
- directory to checkpublic Optional<java.time.Duration> getLatency(com.atlassian.crowd.embedded.api.Directory directory)
getLatency
in interface UserDirectoryConnectionService
directory
- directory to checkpublic java.util.stream.Stream<com.atlassian.crowd.embedded.api.Directory> findAllActiveExternalDirectories()
findAllActiveExternalDirectories
in interface UserDirectoryConnectionService
Copyright © 2002-2023 Atlassian. All Rights Reserved.