Class EmbeddedAerospikeTestOperationsAutoConfiguration
java.lang.Object
com.playtika.testcontainer.aerospike.EmbeddedAerospikeTestOperationsAutoConfiguration
@AutoConfiguration(afterName="org.springframework.boot.autoconfigure.aerospike.AerospikeAutoConfiguration")
@ConditionalOnExpression("${embedded.containers.enabled:true}")
@ConditionalOnBean({com.aerospike.client.AerospikeClient.class,AerospikeProperties.class})
@ConditionalOnProperty(value="embedded.aerospike.enabled",
matchIfMissing=true)
public class EmbeddedAerospikeTestOperationsAutoConfiguration
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaerospikePackageInstaller(InstallPackageProperties aerospikePackageProperties, org.testcontainers.containers.GenericContainer<?> aerospike) aerospikeTestOperations(ExpiredDocumentsCleaner expiredDocumentsCleaner, org.testcontainers.containers.GenericContainer<?> aerospike) expiredDocumentsCleaner(com.aerospike.client.AerospikeClient client, AerospikeProperties properties)
-
Constructor Details
-
EmbeddedAerospikeTestOperationsAutoConfiguration
public EmbeddedAerospikeTestOperationsAutoConfiguration()
-
-
Method Details
-
aerospikePackageProperties
@Bean @ConfigurationProperties("embedded.aerospike.install") public InstallPackageProperties aerospikePackageProperties() -
aerospikePackageInstaller
@Bean public PackageInstaller aerospikePackageInstaller(InstallPackageProperties aerospikePackageProperties, @Qualifier("aerospike") org.testcontainers.containers.GenericContainer<?> aerospike) -
expiredDocumentsCleaner
@Bean @ConditionalOnProperty(value="embedded.aerospike.time-travel.enabled", havingValue="true", matchIfMissing=true) public ExpiredDocumentsCleaner expiredDocumentsCleaner(com.aerospike.client.AerospikeClient client, AerospikeProperties properties) -
disabledExpiredDocumentsCleaner
@Bean @ConditionalOnProperty(value="embedded.aerospike.time-travel.enabled", havingValue="false", matchIfMissing=false) public ExpiredDocumentsCleaner disabledExpiredDocumentsCleaner() -
aerospikeTestOperations
@Bean @ConditionalOnMissingBean public AerospikeTestOperations aerospikeTestOperations(ExpiredDocumentsCleaner expiredDocumentsCleaner, @Qualifier("aerospike") org.testcontainers.containers.GenericContainer<?> aerospike)
-