com.cedarsoft.gdao.async.AsynchronousDaoManager Maven / Gradle / Ivy
package com.cedarsoft.gdao.async;
import com.cedarsoft.async.AsyncCallSupport;
import com.cedarsoft.async.CallbackCaller;
import com.cedarsoft.gdao.GenericDao;
import com.cedarsoft.gdao.GenericDaoManager;
import com.cedarsoft.gdao.LockProvider;
import com.cedarsoft.utils.Cache;
import com.cedarsoft.utils.HashedCache;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.jetbrains.annotations.NonNls;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.Iterator;
/**
* Special implementation of {@link GenericDaoManager} that
* returns {@link AsynchronousDao}s.
*/
public final class AsynchronousDaoManager implements GenericDaoManager {
@NonNls
@NotNull
private static final Log log = LogFactory.getLog( AsynchronousDaoManager.class );
@NotNull
private final AsyncCallSupport> asyncCallSupport = new AsyncCallSupport>();
@SuppressWarnings( {"MismatchedQueryAndUpdateOfCollection"} )
@NotNull
private final Cache, AsynchronousDao
© 2015 - 2025 Weber Informatics LLC | Privacy Policy