Package org.apache.geode.connectors.jdbc
Class JdbcAsyncWriter
java.lang.Object
org.apache.geode.connectors.jdbc.internal.AbstractJdbcCallback
org.apache.geode.connectors.jdbc.JdbcAsyncWriter
- All Implemented Interfaces:
AsyncEventListener,CacheCallback,Declarable
@Experimental
public class JdbcAsyncWriter
extends org.apache.geode.connectors.jdbc.internal.AbstractJdbcCallback
implements AsyncEventListener
This class provides write behind cache semantics for a JDBC data source using AsyncEventListener.
- Since:
- Geode 1.4
-
Field Summary
Fields inherited from class org.apache.geode.connectors.jdbc.internal.AbstractJdbcCallback
cache -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanprocessEvents(List<AsyncEvent> events) Process the list ofAsyncEvents.Methods inherited from class org.apache.geode.connectors.jdbc.internal.AbstractJdbcCallback
checkInitialized, eventCanBeIgnored, getSqlHandlerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.geode.cache.CacheCallback
closeMethods inherited from interface org.apache.geode.cache.Declarable
init, initialize
-
Constructor Details
-
JdbcAsyncWriter
public JdbcAsyncWriter()
-
-
Method Details
-
processEvents
Description copied from interface:AsyncEventListenerProcess the list ofAsyncEvents. This method will asynchronously be called when events are queued to be processed. The size of the list will be up to batch size events where batch size is defined in theAsyncEventQueueFactory.- Specified by:
processEventsin interfaceAsyncEventListener- Parameters:
events- The list ofAsyncEventto process- Returns:
- boolean True represents whether the events were successfully processed, false otherwise.
-