public class SerializerAwareObjectStoreProducer<T> extends Object implements org.mule.runtime.core.api.streaming.iterator.Producer<T>
Producer to stream the contents of a ObjectStore. This object store must have instances of
byte[] as values. This producer will use the provided ObjectSerializer to turn those bytes into objects| Constructor and Description |
|---|
SerializerAwareObjectStoreProducer(org.mule.runtime.api.store.ObjectStore<byte[]> objectStore,
org.mule.runtime.api.serialization.ObjectSerializer serializer) |
public SerializerAwareObjectStoreProducer(org.mule.runtime.api.store.ObjectStore<byte[]> objectStore,
org.mule.runtime.api.serialization.ObjectSerializer serializer)
public T produce()
produce in interface org.mule.runtime.core.api.streaming.iterator.Producer<T>public int getSize()
getSize in interface org.mule.runtime.api.streaming.HasSizepublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2006–2022 MuleSoft, Inc.. All rights reserved.