public class TransformPerRequestInChunksPolicy extends AbstractTransformPolicy
TransformPolicy
that copies the requested transformed bytes in chunks
into the PipedOutputStream
.AbstractTransformPolicy.TransformerWork
isClosed, 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, startCopyingThread
public TransformPerRequestInChunksPolicy(long chunkSize)
public void readRequest(long length)
readRequest
in interface TransformPolicy
readRequest
in class AbstractTransformPolicy
length
- the nro of bytes requested by the objectpublic void release()
release
in interface TransformPolicy
release
in class AbstractTransformPolicy
protected Thread getCopyingThread()
getCopyingThread
in class AbstractTransformPolicy
Thread
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.