Package io.stargate.sdk.doc
Class StargateDocumentDataLoader<DOC>
java.lang.Object
io.stargate.sdk.doc.StargateDocumentDataLoader<DOC>
- Type Parameters:
DOC- working document
- All Implemented Interfaces:
Closeable,AutoCloseable
Allow to load beans.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault Constructor.StargateDocumentDataLoader(int poolSize) Set up thread in parallel. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()submitCreateDoc(CollectionClient ccc, DOC doc) Push thread in the queue for the document to be loaded.submitCreateDoc(CollectionClient ccc, String doc) Push thread in the queue for the document to be loaded.
-
Constructor Details
-
StargateDocumentDataLoader
public StargateDocumentDataLoader()Default Constructor. -
StargateDocumentDataLoader
public StargateDocumentDataLoader(int poolSize) Set up thread in parallel.- Parameters:
poolSize- poolse
-
-
Method Details
-
submitCreateDoc
Push thread in the queue for the document to be loaded.- Parameters:
ccc- collection client parentdoc- document to be saved- Returns:
- noothing to return
-
submitCreateDoc
Push thread in the queue for the document to be loaded.- Parameters:
ccc- collection client parentdoc- document to be saved- Returns:
- noothing to return
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-