/** * Deserialize the given byte array to session attributes, this is delegated to {@link * SessionAttributesTranscoder#deserializeAttributes(byte[])} (using the {@link * SessionAttributesTranscoder} provided in the constructor of this class). * * @param data the serialized attributes * @return the deserialized attributes * @see de.javakaffee.web.msm.SessionAttributesTranscoder#deserializeAttributes(byte[]) */ public Map<String, Object> deserializeAttributes(final byte[] data) { return _attributesTranscoder.deserializeAttributes(data); }
/** * Serialize the given session attributes to a byte array, this is delegated to {@link * SessionAttributesTranscoder#serializeAttributes(MemcachedBackupSession, Map)} (using the {@link * SessionAttributesTranscoder} provided in the constructor of this class). * * @param session the session that owns the given attributes. * @param attributes the attributes to serialize. * @return a byte array representing the serialized attributes. * @see * de.javakaffee.web.msm.SessionAttributesTranscoder#serializeAttributes(MemcachedBackupSession, * Map) */ public byte[] serializeAttributes( final MemcachedBackupSession session, final Map<String, Object> attributes) { return _attributesTranscoder.serializeAttributes(session, attributes); }