Class ReadOnlyLicenseCalculator
java.lang.Object
com.atlassian.confluence.impl.license.ReadOnlyLicenseCalculator
- All Implemented Interfaces:
LicenseCalculator
Calculates the number of Users in a Confluence instance. Performs the calculation in a separate
thread using a read only transaction.
-
Constructor Summary
ConstructorsConstructorDescriptionReadOnlyLicenseCalculator(RegisteredUsersCache registeredUsersCache, com.atlassian.confluence.impl.license.TransactionExecutor executor) -
Method Summary
Modifier and TypeMethodDescriptionReturns the number of users in the Confluence instancebooleanWhether or not the license calculator is currently computing the number of users in the system.
-
Constructor Details
-
ReadOnlyLicenseCalculator
public ReadOnlyLicenseCalculator(RegisteredUsersCache registeredUsersCache, com.atlassian.confluence.impl.license.TransactionExecutor executor)
-
-
Method Details
-
isRunning
public boolean isRunning()Description copied from interface:LicenseCalculatorWhether or not the license calculator is currently computing the number of users in the system.- Specified by:
isRunningin interfaceLicenseCalculator- Returns:
- true/false
-
getNumberOfLicensedUsers
Description copied from interface:LicenseCalculatorReturns the number of users in the Confluence instance- Specified by:
getNumberOfLicensedUsersin interfaceLicenseCalculator- Returns:
- the number of users, or -1 if a timeout occurs (for compatibility with existing code)
-