@Target({METHOD,TYPE})
@Retention(RUNTIME)
@Documented
@MinMuleVersion("4.5.0")
public @interface Streaming
Intended to be used on operation methods and implementations of
Source, this annotation indicates that such component
supports streaming.
The runtime can automatically infer that when the return type is a InputStream, but there're corner cases in which the
return type is of some other abstraction type and thus this has to be manually hinted.
Using this annotation on components which return InputStream is redundant yet harmless.
- Since:
- 1.0