public class

MappingCache

extends Object
java.lang.Object
   ↳ com.netflix.astyanax.mapping.MappingCache

Class Overview

Utility to cache mappers. There's a small performance hit to reflect on a bean. This cache, re-uses mappers for a given bean

Summary

Public Constructors
MappingCache()
Public Methods
<T> Mapping<T> getMapping(Class<T> clazz, AnnotationSet<?, ?> annotationSet)
Return a new or cached mapper
<T> Mapping<T> getMapping(Class<T> clazz)
Return a new or cached mapper
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public MappingCache ()

Public Methods

public Mapping<T> getMapping (Class<T> clazz, AnnotationSet<?, ?> annotationSet)

Return a new or cached mapper

Parameters
clazz class for the mapper
annotationSet annotation set for the mapper
Returns
  • mapper

public Mapping<T> getMapping (Class<T> clazz)

Return a new or cached mapper

Parameters
clazz class for the mapper
Returns
  • mapper