org.ektorp
Interface LocalBulkBuffer

All Known Subinterfaces:
CouchDbConnector
All Known Implementing Classes:
DefaultLocalBulkBuffer, StdCouchDbConnector, StreamedCouchDbConnector

public interface LocalBulkBuffer


Method Summary
 void addToBulkBuffer(Object o)
          Add the object to the bulk buffer attached to the executing thread.
 void clearBulkBuffer()
          Clears the bulk buffer attached the the executing thread.
 List<DocumentOperationResult> flushBulkBuffer()
          Sends the bulk buffer attached the the executing thread to the database (through a executeBulk call).
 

Method Detail

addToBulkBuffer

void addToBulkBuffer(Object o)
Add the object to the bulk buffer attached to the executing thread. A subsequent call to either flushBulkBuffer or clearBulkBuffer is expected.

Parameters:
o -

flushBulkBuffer

List<DocumentOperationResult> flushBulkBuffer()
Sends the bulk buffer attached the the executing thread to the database (through a executeBulk call). The bulk buffer will be cleared when this method is finished.


clearBulkBuffer

void clearBulkBuffer()
Clears the bulk buffer attached the the executing thread.



Copyright © 2017. All rights reserved.