Search in sources :

Example 1 with ZonedDateTimeSerializer

use of org.apereo.cas.memcached.kryo.serial.ZonedDateTimeSerializer in project cas by apereo.

the class CloseableKryoFactory method registerNativeJdkComponentsWithKryo.

private void registerNativeJdkComponentsWithKryo(final Kryo kryo) {
    kryo.register(Class.class, new DefaultSerializers.ClassSerializer());
    kryo.register(ZonedDateTime.class, new ZonedDateTimeSerializer());
    kryo.register(ArrayList.class);
    kryo.register(HashMap.class);
    kryo.register(LinkedHashMap.class);
    kryo.register(byte[].class);
    kryo.register(LinkedHashSet.class);
    kryo.register(ByteBuffer.class);
    kryo.register(HashSet.class);
    kryo.register(URL.class, new URLSerializer());
    kryo.register(URI.class, new URISerializer());
    kryo.register(Pattern.class, new RegexSerializer());
    kryo.register(UUID.class, new UUIDSerializer());
    kryo.register(EnumMap.class, new EnumMapSerializer());
    kryo.register(EnumSet.class, new EnumSetSerializer());
}
Also used : URISerializer(de.javakaffee.kryoserializers.URISerializer) DefaultSerializers(com.esotericsoftware.kryo.serializers.DefaultSerializers) ZonedDateTimeSerializer(org.apereo.cas.memcached.kryo.serial.ZonedDateTimeSerializer) UUIDSerializer(de.javakaffee.kryoserializers.UUIDSerializer) URLSerializer(org.apereo.cas.memcached.kryo.serial.URLSerializer) EnumMapSerializer(de.javakaffee.kryoserializers.EnumMapSerializer) RegexSerializer(de.javakaffee.kryoserializers.RegexSerializer) EnumSetSerializer(de.javakaffee.kryoserializers.EnumSetSerializer)

Aggregations

DefaultSerializers (com.esotericsoftware.kryo.serializers.DefaultSerializers)1 EnumMapSerializer (de.javakaffee.kryoserializers.EnumMapSerializer)1 EnumSetSerializer (de.javakaffee.kryoserializers.EnumSetSerializer)1 RegexSerializer (de.javakaffee.kryoserializers.RegexSerializer)1 URISerializer (de.javakaffee.kryoserializers.URISerializer)1 UUIDSerializer (de.javakaffee.kryoserializers.UUIDSerializer)1 URLSerializer (org.apereo.cas.memcached.kryo.serial.URLSerializer)1 ZonedDateTimeSerializer (org.apereo.cas.memcached.kryo.serial.ZonedDateTimeSerializer)1