public interface Producer
Modifier and Type | Method and Description |
---|---|
Message |
produce(Channel out,
Content data)
Produce data for the selected output channel.
|
Message |
sample(Channel out)
Produce sample data for the selected output channel
Upon activation, this method will be called once for each meaningful 'out' (that have at least one chained app).
|
boolean |
test()
Test preconditions for this app.
|
Message produce(Channel out, Content data) throws Exception
out
- the desired output channeldata
- Optional PUSH data that triggered activation of this methodException
- If any exception is thrown, it has the same effect as calling App.notifyOwner(e.getMessage(), e) and then returning null.Message sample(Channel out) throws Exception
out
- The desired output channel.Exception
- If any exception is thrown, it has the same effect as calling App.notifyOwner(e.getMessage(), e) and then returning null.boolean test() throws Exception
Exception
- If any exception is thrown, it has the same effect as calling App.notifyOwner(e.getMessage(), e), and then returning false.