public class AnalyticsOutputStream extends OutputStream
| Constructor and Description |
|---|
AnalyticsOutputStream(String dataSetId,
int bufferSize,
TransactionManager transactionManager,
SalesforceAnalyticsConnection connection,
org.mule.runtime.api.store.ObjectStore<Integer> partNoObjectStore,
Lock partUploadLock)
Creates an instance of class from given data.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
void |
write(int b)
Writes an int value to an internal buffer and when the buffer is full it is flushed into EdgeSpring system.
|
write, writepublic AnalyticsOutputStream(String dataSetId, int bufferSize, TransactionManager transactionManager, SalesforceAnalyticsConnection connection, org.mule.runtime.api.store.ObjectStore<Integer> partNoObjectStore, Lock partUploadLock)
dataSetId - identifier of the data set where data to be uploadedbufferSize - the size of the buffertransactionManager - transaction manager that manages data written by streamconnection - object holding connection detailspartNoObjectStore - object store caching current part numberpartUploadLock - lock object to be aquired while uploading data partpublic void write(int b)
throws IOException
write in class OutputStreamb - - the int value to be written.IOException - if an error occurred when writing datapublic void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionCopyright © 2025 MuleSoft, Inc.. All rights reserved.