@@ -400,30 +400,15 @@ public StreamWrite createStreamWrite(String group, String name, final String ele
400
400
}
401
401
402
402
/**
403
- * Build a StreamWrite request .
403
+ * Build a trace bulk write processor .
404
404
*
405
- * @param group the group of the stream
406
- * @param name the name of the stream
407
- * @param elementId the primary key of the stream
408
- * @param timestamp the timestamp of the stream
409
- * @return the request to be built
405
+ * @param maxBulkSize the max size of each flush. The actual size is determined by the length of byte array.
406
+ * @param flushInterval if given maxBulkSize is not reached in this period, the flush would be trigger
407
+ * automatically. Unit is second.
408
+ * @param concurrency the number of concurrency would run for the flush max.
409
+ * @param timeout network timeout threshold in seconds.
410
+ * @return trace bulk write processor
410
411
*/
411
- public StreamWrite createStreamWrite (String group , String name , final String elementId , long timestamp ) throws BanyanDBException {
412
- Preconditions .checkArgument (!Strings .isNullOrEmpty (group ));
413
- Preconditions .checkArgument (!Strings .isNullOrEmpty (name ));
414
- return new StreamWrite (this .metadataCache .findStreamMetadata (group , name ), elementId , timestamp );
415
- }
416
-
417
- /**
418
- * Build a trace bulk write processor.
419
- *
420
- * @param maxBulkSize the max size of each flush. The actual size is determined by the length of byte array.
421
- * @param flushInterval if given maxBulkSize is not reached in this period, the flush would be trigger
422
- * automatically. Unit is second.
423
- * @param concurrency the number of concurrency would run for the flush max.
424
- * @param timeout network timeout threshold in seconds.
425
- * @return trace bulk write processor
426
- */
427
412
public TraceBulkWriteProcessor buildTraceWriteProcessor (int maxBulkSize , int flushInterval , int concurrency , int timeout ) {
428
413
checkState (this .traceServiceStub != null , "trace service is null" );
429
414
0 commit comments