public class OpflowEngine extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
OpflowEngine.ConsumerInfo |
static interface |
OpflowEngine.Operator |
static class |
OpflowEngine.State |
| Modifier and Type | Field and Description |
|---|---|
static String[] |
PARAMETER_NAMES |
| Constructor and Description |
|---|
OpflowEngine(Map<String,Object> params) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
acquireChannel(OpflowEngine.Operator listener) |
void |
cancelConsumer(OpflowEngine.ConsumerInfo consumerInfo) |
OpflowEngine.State |
check() |
void |
close()
Close this broker.
|
OpflowEngine.ConsumerInfo |
consume(OpflowListener listener,
Map<String,Object> options) |
void |
produce(byte[] body,
Map<String,Object> headers) |
void |
produce(byte[] body,
Map<String,Object> headers,
com.rabbitmq.client.AMQP.BasicProperties.Builder propBuilder) |
void |
produce(byte[] body,
Map<String,Object> headers,
com.rabbitmq.client.AMQP.BasicProperties.Builder propBuilder,
Map<String,Object> override) |
void |
produce(byte[] body,
Map<String,Object> headers,
Map<String,Object> override) |
public static final String[] PARAMETER_NAMES
public OpflowEngine(Map<String,Object> params) throws OpflowBootstrapException
OpflowBootstrapExceptionpublic void produce(byte[] body,
Map<String,Object> headers,
com.rabbitmq.client.AMQP.BasicProperties.Builder propBuilder)
public void produce(byte[] body,
Map<String,Object> headers,
com.rabbitmq.client.AMQP.BasicProperties.Builder propBuilder,
Map<String,Object> override)
public OpflowEngine.ConsumerInfo consume(OpflowListener listener, Map<String,Object> options)
public <T> T acquireChannel(OpflowEngine.Operator listener) throws IOException, TimeoutException
IOExceptionTimeoutExceptionpublic void cancelConsumer(OpflowEngine.ConsumerInfo consumerInfo)
public OpflowEngine.State check()
public void close()
OpflowOperationException - if an error is encounteredCopyright © 2017. All rights reserved.