Type - the type of object handled@ThreadSafeAfterInit
public interface StorageSerializer<Type>
extends net.shibboleth.utilities.java.support.component.InitializableComponent
StorageService implementation
to optimize the handling of complex objects.| Modifier and Type | Method and Description |
|---|---|
Type |
deserialize(long version,
java.lang.String context,
java.lang.String key,
java.lang.String value,
java.lang.Long expiration)
Returns an object recovered from a string produced through the
serialize(Type) method. |
java.lang.String |
serialize(Type instance)
Returns a string representing the input object.
|
@Nonnull
@NotEmpty
java.lang.String serialize(@Nonnull
Type instance)
throws java.io.IOException
instance - object to serializejava.io.IOException - if an error occurs during serialization@Nonnull Type deserialize(long version, @Nonnull @NotEmpty java.lang.String context, @Nonnull @NotEmpty java.lang.String key, @Nonnull @NotEmpty java.lang.String value, @Nullable java.lang.Long expiration) throws java.io.IOException
serialize(Type) method.version - record versioncontext - context of recordkey - key of recordvalue - data to deserializeexpiration - expiration of record, if anyjava.io.IOException - if an error occurs during deserialization