![JAR search and dependency download from the Maven repository](/logo.png)
org.infinispan.persistence.jdbc.common.TableOperations Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of infinispan-cachestore-jdbc-common-jakarta Show documentation
Show all versions of infinispan-cachestore-jdbc-common-jakarta Show documentation
Infinispan JDBC CacheStore Jakarta EE Common module
package org.infinispan.persistence.jdbc.common;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.function.Consumer;
import java.util.function.Predicate;
import java.util.function.Supplier;
import org.infinispan.commons.util.IntSet;
import org.infinispan.persistence.spi.MarshallableEntry;
import org.infinispan.persistence.spi.NonBlockingStore;
import org.reactivestreams.Publisher;
import io.reactivex.rxjava3.core.Flowable;
/**
* @author William Burns
*/
public interface TableOperations {
MarshallableEntry loadEntry(Connection connection, int segment, Object key) throws SQLException;
default Flowable publishKeys(Supplier connectionSupplier, Consumer connectionCloser,
IntSet segments, Predicate super K> filter) {
return publishEntries(connectionSupplier, connectionCloser, segments, filter, false)
.map(MarshallableEntry::getKey);
}
Flowable> publishEntries(Supplier connectionSupplier,
Consumer connectionCloser, IntSet segments, Predicate super K> filter, boolean fetchValue);
boolean deleteEntry(Connection connection, int segment, Object key) throws SQLException;
void deleteAllRows(Connection connection) throws SQLException;
void upsertEntry(Connection connection, int segment, MarshallableEntry extends K, ? extends V> entry) throws SQLException;
long size(Connection connection) throws SQLException;
void batchUpdates(Connection connection, int writePublisherCount, Publisher
© 2015 - 2025 Weber Informatics LLC | Privacy Policy