public class TransformPerRequestInChunksPolicy extends AbstractTransformPolicy
TransformPolicy that copies the requested transformed bytes in chunks
into the PipedOutputStream.AbstractTransformPolicy.TransformerWorkisClosed, logger| Constructor and Description |
|---|
TransformPerRequestInChunksPolicy(long chunkSize) |
| Modifier and Type | Method and Description |
|---|---|
protected Thread |
getCopyingThread() |
void |
readRequest(long length)
Notifies this policy that the object has requested nroOfBytes
|
void |
release()
Releases all the resources of this policy
|
getBytesRequested, getInputStream, getTransformer, initialize, startCopyingThreadpublic TransformPerRequestInChunksPolicy(long chunkSize)
public void readRequest(long length)
readRequest in interface TransformPolicyreadRequest in class AbstractTransformPolicylength - the nro of bytes requested by the objectpublic void release()
release in interface TransformPolicyrelease in class AbstractTransformPolicyprotected Thread getCopyingThread()
getCopyingThread in class AbstractTransformPolicyThreadCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.