public class TransformPerRequestPolicy extends AbstractTransformPolicy
TransformPolicy
that copies only the requested transformed bytes
into the PipedOutputStream
.AbstractTransformPolicy.TransformerWork
isClosed, logger
Constructor and Description |
---|
TransformPerRequestPolicy() |
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 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.