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.Listenerstatic classOpflowEngine.Messagestatic interfaceOpflowEngine.Operatorstatic classOpflowEngine.State -
Field Summary
Fields Modifier and Type Field Description static String[]PARAMETER_NAMESstatic String[]SHARED_PARAMETERS -
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(OpflowEngine.Listener listener, Map<String,Object> options)protected voidfinalize()StringgetApplicationId()BooleangetExchangeDurable()StringgetExchangeName()StringgetExchangeType()StringgetRoutingKey()voidproduce(byte[] body, Map<String,Object> headers)voidproduce(byte[] body, Map<String,Object> headers, com.rabbitmq.nostro.client.AMQP.BasicProperties.Builder propBuilder)voidproduce(byte[] body, Map<String,Object> headers, com.rabbitmq.nostro.client.AMQP.BasicProperties.Builder propBuilder, Map<String,Object> override, OpflowLogTracer reqTracer)voidproduce(byte[] body, Map<String,Object> headers, Map<String,Object> override)voidsetConsumingBlockedListener(com.rabbitmq.nostro.client.BlockedListener consumingBlockedListener)voidsetProducingBlockedListener(com.rabbitmq.nostro.client.BlockedListener producingBlockedListener)
-
Field Details
-
Constructor Details
-
OpflowEngine
- Throws:
OpflowBootstrapException
-
-
Method Details
-
getExchangeName
-
getExchangeType
-
getExchangeDurable
-
getRoutingKey
-
getApplicationId
-
produce
-
produce
-
produce
-
produce
-
consume
public OpflowEngine.ConsumerInfo consume(OpflowEngine.Listener listener, Map<String,Object> options) -
acquireChannel
- Throws:
IOExceptionTimeoutException
-
cancelConsumer
-
check
-
close
public void close()Close this broker.- Specified by:
closein interfaceAutoCloseable- Throws:
OpflowOperationException- if an error is encountered
-
setProducingBlockedListener
public void setProducingBlockedListener(com.rabbitmq.nostro.client.BlockedListener producingBlockedListener) -
setConsumingBlockedListener
public void setConsumingBlockedListener(com.rabbitmq.nostro.client.BlockedListener consumingBlockedListener) -
finalize
-