Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Property

Default

Description

CamelCachedOutputStreamBufferSize

2kb

Size in bytes of the buffer used in the stream.

CamelCachedOutputStreamThreshold

64kb

Size in bytes when the stream should be spooled to disk instead of keeping in memory. Use a value of 0 or negative to disable it all together so streams is always kept in memory regardless of their size.

CamelCachedOutputStreamOutputDirectory

java.io.tmpdir

Base directory where temporary files for spooled streams should be stored.

...

Code Block
java
java
context.getProperties().put(CachedOutputStream.TEMP_DIR, "/tmp/cachedir");
context.getProperties().put(CachedOutputStream.THRESHOLD, "1024");
context.getProperties().put(CachedOutputStream.BUFFER_SIZE, "4096");

Disabling spooling to disk

...