@Requires(classes=redis.embedded.RedisServer.class) @Requires(beans=AbstractRedisConfiguration.class) @Factory @Deprecated public class EmbeddedRedisServer extends java.lang.Object implements io.micronaut.context.event.BeanCreatedEventListener<AbstractRedisConfiguration>, java.io.Closeable
Modifier and Type | Class and Description |
---|---|
static class |
EmbeddedRedisServer.Configuration
Deprecated.
since 5.3.0, use TestContainers RedisContainer instead.
|
Constructor and Description |
---|
EmbeddedRedisServer(EmbeddedRedisServer.Configuration embeddedConfiguration)
Deprecated.
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Deprecated.
|
AbstractRedisConfiguration |
onCreated(io.micronaut.context.event.BeanCreatedEvent<AbstractRedisConfiguration> event)
Deprecated.
|
public EmbeddedRedisServer(EmbeddedRedisServer.Configuration embeddedConfiguration)
embeddedConfiguration
- embeddedConfigurationpublic AbstractRedisConfiguration onCreated(io.micronaut.context.event.BeanCreatedEvent<AbstractRedisConfiguration> event)
onCreated
in interface io.micronaut.context.event.BeanCreatedEventListener<AbstractRedisConfiguration>
@PreDestroy public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException