
com.contentful.java.cda.Cache Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-sdk Show documentation
Show all versions of java-sdk Show documentation
Java SDK for Contentful's Content Delivery API.
package com.contentful.java.cda;
import java.util.Map;
final class Cache {
private CDASpace space;
private Map types;
private final Object LOCK_SPACE = new Object();
private final Object LOCK_TYPES = new Object();
CDASpace space() {
synchronized (LOCK_SPACE) {
return space;
}
}
void setSpace(CDASpace space) {
synchronized (LOCK_SPACE) {
this.space = space;
}
}
Map types() {
synchronized (LOCK_TYPES) {
return types;
}
}
void setTypes(Map types) {
synchronized (LOCK_TYPES) {
this.types = types;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy