...
In addition, arbitrary options can bedefined. They need to start with the prefix "rabbit."
which will be removed in the actual argument. Example:
['rabbit.x-message-ttl',1000]
will be the argument 'x-message-ttl'
with the long value '1000'
.
Work queue example
Code Block |
---|
/// Send elements to bus (work queue) SENDER = SENDER({ transport='RabbitMQ', wrapper='GenericPush', protocol='SimpleByteBuffer', datahandler='Tuple', SINK="SENDER", options=[ ['QUEUE_NAME','nexmark'], ['CONSUMER_TAG','person'], ['HOST','localhost'], ['ByteOrder', 'LittleEndian'] ] }, nexmark:person ) /// Receive elements from bus (work queue) input = ACCESS({ transport='RabbitMQ', source= 'Receiver', wrapper='GenericPush', protocol='SimpleByteBuffer', datahandler='Tuple', options=[ ['QUEUE_NAME','nexmark'], ['CONSUMER_TAG','person'], ['HOST','localhost'], ['ByteOrder', 'LittleEndian'] ], schema=[ ['TIMESTAMP', 'STARTTIMESTAMP'], ['id', 'INTEGER'], ['name', 'STRING'], ['email', 'STRING'], ['creditcard', 'STRING'], ['city', 'STRING'], ['state', 'STRING'] ] } ) |
...