|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StreamCache
Tagging interface to indicate that a type is capable of caching the underlying data stream.
This is a useful feature for avoiding message re-readability issues. This interface is mainly used by theStreamCachingInterceptor
for determining if/how to wrap a stream-based message.
Field Summary | |
---|---|
static long |
DEFAULT_SPOOL_THRESHOLD
|
Method Summary | |
---|---|
boolean |
inMemory()
Whether this StreamCache is in memory only or
spooled to persistent storage such as files. |
long |
length()
Gets the length of the cached stream. |
void |
reset()
Resets the StreamCache for a new stream consumption. |
void |
writeTo(OutputStream os)
Writes the stream to the given output |
Field Detail |
---|
static final long DEFAULT_SPOOL_THRESHOLD
Method Detail |
---|
void reset()
void writeTo(OutputStream os) throws IOException
os
- the destination to write to
IOException
- is thrown if write failsboolean inMemory()
StreamCache
is in memory only or
spooled to persistent storage such as files.
long length()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |