@Requires(classes=redis.embedded.RedisServer.class) @Requires(beans=AbstractRedisConfiguration.class) @Factory public class EmbeddedRedisServer extends Object implements io.micronaut.context.event.BeanCreatedEventListener<AbstractRedisConfiguration>, Closeable
Modifier and Type | Class and Description |
---|---|
static class |
EmbeddedRedisServer.Configuration
Configuration properties for embedded Redis.
|
Constructor and Description |
---|
EmbeddedRedisServer(EmbeddedRedisServer.Configuration embeddedConfiguration)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
AbstractRedisConfiguration |
onCreated(io.micronaut.context.event.BeanCreatedEvent<AbstractRedisConfiguration> event) |
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 IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException