public class TransformContinuouslyPolicy extends AbstractTransformPolicy
TransformPolicy
that copies the transformed bytes continuously into the PipedOutputStream
without taking into account about how many bytes the object has requested.AbstractTransformPolicy.TransformerWork
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_CHUNK_SIZE |
isClosed, logger
Constructor and Description |
---|
TransformContinuouslyPolicy() |
TransformContinuouslyPolicy(long chunkSize) |
Modifier and Type | Method and Description |
---|---|
protected Thread |
getCopyingThread() |
void |
readRequest(long length)
Notifies this policy that the object has requested nroOfBytes
|
getBytesRequested, getInputStream, getTransformer, initialize, release, startCopyingThread
public static final long DEFAULT_CHUNK_SIZE
public TransformContinuouslyPolicy()
public TransformContinuouslyPolicy(long chunkSize)
public void readRequest(long length)
readRequest
in interface TransformPolicy
readRequest
in class AbstractTransformPolicy
length
- the nro of bytes requested by the objectprotected Thread getCopyingThread()
getCopyingThread
in class AbstractTransformPolicy
Thread
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.