Type
- the type of object handled@ThreadSafeAfterInit public interface StorageSerializer<Type> extends InitializableComponent
StorageService
implementation
to optimize the handling of complex objects.Modifier and Type | Method and Description |
---|---|
Type |
deserialize(long version,
String context,
String key,
String value,
Long expiration)
Returns an object recovered from a string produced through the
serialize(Type) method. |
String |
serialize(Type instance)
Returns a string representing the input object.
|
initialize, isInitialized
@Nonnull @NotEmpty String serialize(@Nonnull Type instance) throws IOException
instance
- object to serializeIOException
- if an error occurs during serialization@Nonnull Type deserialize(long version, @Nonnull @NotEmpty String context, @Nonnull @NotEmpty String key, @Nonnull @NotEmpty String value, @Nullable Long expiration) throws IOException
serialize(Type)
method.version
- record versioncontext
- context of recordkey
- key of recordvalue
- data to deserializeexpiration
- expiration of record, if anyIOException
- if an error occurs during deserializationCopyright © 1999–2018 Shibboleth Consortium. All rights reserved.