@Requires(classes=redis.embedded.RedisServer.class) @Requires(beans=AbstractRedisConfiguration.class) @Factory public class EmbeddedRedisServer extends Object implements 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(BeanCreatedEvent<AbstractRedisConfiguration> event)
Fired when a bean is created and all
PostConstruct initialization hooks have been
called. |
public EmbeddedRedisServer(EmbeddedRedisServer.Configuration embeddedConfiguration)
embeddedConfiguration - embeddedConfigurationpublic AbstractRedisConfiguration onCreated(BeanCreatedEvent<AbstractRedisConfiguration> event)
BeanCreatedEventListenerPostConstruct initialization hooks have been
called.onCreated in interface BeanCreatedEventListener<AbstractRedisConfiguration>event - The bean created event@PreDestroy public void close() throws IOException
close in interface Closeableclose in interface AutoCloseableIOException