Constructor and Description |
---|
Regions(Iterable<org.apache.geode.cache.Region<?,?>> regions,
MappingContext<? extends GemfirePersistentEntity<?>,?> mappingContext)
|
Modifier and Type | Method and Description |
---|---|
<T> org.apache.geode.cache.Region<?,T> |
getRegion(Class<T> entityType)
Returns the
Region the given type is mapped to. |
<S,T> org.apache.geode.cache.Region<S,T> |
getRegion(String namePath)
Returns the
Region with the given name or path. |
Iterator<org.apache.geode.cache.Region<?,?>> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public Regions(Iterable<org.apache.geode.cache.Region<?,?>> regions, MappingContext<? extends GemfirePersistentEntity<?>,?> mappingContext)
regions
- must not be null.mappingContext
- must not be null.public <T> org.apache.geode.cache.Region<?,T> getRegion(Class<T> entityType)
Region
the given type is mapped to. Will try to find
a Region
with the simple class name in case no mapping
information is found.T
- the Region value class type.entityType
- must not be null.Region
the given type is mapped to.public <S,T> org.apache.geode.cache.Region<S,T> getRegion(String namePath)
Region
with the given name or path.S
- the Region key class type.T
- the Region value class type.namePath
- must not be null, and either identifies the Region by name or the fully-qualified path.Region
with the given name or path.Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.