VMware GemFire Java API Reference
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
-
-
Constructor Summary
Constructors Constructor Description JdbcAsyncWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanprocessEvents(java.util.List<AsyncEvent> events)Process the list ofAsyncEvents.-
Methods inherited from class org.apache.geode.connectors.jdbc.internal.AbstractJdbcCallback
checkInitialized, eventCanBeIgnored, getSqlHandler
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.geode.cache.CacheCallback
close
-
Methods inherited from interface org.apache.geode.cache.Declarable
init, initialize
-
-
-
-
Method Detail
-
processEvents
public boolean processEvents(java.util.List<AsyncEvent> events)
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.
-
-