Package com.devebot.opflow
Class OpflowEngine
java.lang.Object
com.devebot.opflow.OpflowEngine
- All Implemented Interfaces:
AutoCloseable
public class OpflowEngine extends Object implements AutoCloseable
- Author:
- drupalex
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classOpflowEngine.ConsumerInfostatic interfaceOpflowEngine.Operatorstatic classOpflowEngine.State -
Field Summary
Fields Modifier and Type Field Description static String[]PARAMETER_NAMES -
Constructor Summary
Constructors Constructor Description OpflowEngine(Map<String,Object> params) -
Method Summary
Modifier and Type Method Description <T> TacquireChannel(OpflowEngine.Operator listener)voidcancelConsumer(OpflowEngine.ConsumerInfo consumerInfo)OpflowEngine.Statecheck()voidclose()Close this broker.OpflowEngine.ConsumerInfoconsume(OpflowListener listener, Map<String,Object> options)protected voidfinalize()StringgetApplicationId()BooleangetExchangeDurable()StringgetExchangeName()String[]getOtherKeys()StringgetRoutingKey()voidproduce(byte[] body, Map<String,Object> headers)voidproduce(byte[] body, Map<String,Object> headers, com.rabbitmq.client.AMQP.BasicProperties.Builder propBuilder)voidproduce(byte[] body, Map<String,Object> headers, com.rabbitmq.client.AMQP.BasicProperties.Builder propBuilder, Map<String,Object> override)voidproduce(byte[] body, Map<String,Object> headers, Map<String,Object> override)
-
Field Details
-
Constructor Details
-
OpflowEngine
- Throws:
OpflowBootstrapException
-
-
Method Details
-
getExchangeName
-
getExchangeDurable
-
getRoutingKey
-
getOtherKeys
-
getApplicationId
-
produce
-
produce
-
produce
-
produce
-
consume
-
acquireChannel
- Throws:
IOExceptionTimeoutException
-
cancelConsumer
-
check
-
close
public void close()Close this broker.- Specified by:
closein interfaceAutoCloseable- Throws:
OpflowOperationException- if an error is encountered
-
finalize
-