Package io.hekate.spring.boot.codec
Class HekateKryoCodecConfigurer
- java.lang.Object
-
- io.hekate.spring.boot.codec.HekateKryoCodecConfigurer
-
@Configuration @ConditionalOnHekateEnabled @AutoConfigureBefore(HekateConfigurer.class) @ConditionalOnProperty(name="hekate.codec", havingValue="kryo") public class HekateKryoCodecConfigurer extends Object
Auto-configuration forKryoCodecFactory
.Module Dependency
Kryo integration requires
io.hekate:hekate-codec-kryo
to be placed on the project classpath.Configuration
This auto-configuration can be enabled by setting the
'hekate.codec'
property to'kryo'
in the application configuration.The following properties can be used to customize the auto-configured
KryoCodecFactory
instance:
-
-
Constructor Summary
Constructors Constructor Description HekateKryoCodecConfigurer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KryoCodecFactory<Object>
kryoCodecFactory()
Constructs a new instance ofKryoCodecFactory
.
-
-
-
Method Detail
-
kryoCodecFactory
@Bean @Qualifier("default") @ConfigurationProperties(prefix="hekate.codec.kryo") public KryoCodecFactory<Object> kryoCodecFactory()
Constructs a new instance ofKryoCodecFactory
.- Returns:
- Codec factory.
-
-