Package com.devebot.opflow
Class OpflowPubsubHandler
java.lang.Object
com.devebot.opflow.OpflowPubsubHandler
- All Implemented Interfaces:
AutoCloseable
public class OpflowPubsubHandler extends Object implements AutoCloseable
- Author:
- drupalex
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classOpflowPubsubHandler.State -
Constructor Summary
Constructors Constructor Description OpflowPubsubHandler(Map<String,Object> params) -
Method Summary
Modifier and Type Method Description OpflowPubsubHandler.Statecheck()voidclose()StringgetComponentId()OpflowEnginegetEngine()OpflowExecutorgetExecutor()intgetPrefetchCount()StringgetRecyclebinName()intgetRedeliveredLimit()intgetSubscriberLimit()StringgetSubscriberName()voidpublish(byte[] body)voidpublish(byte[] body, Map<String,Object> headers)voidpublish(byte[] body, Map<String,Object> headers, String routingKey)voidpublish(String body)voidpublish(String body, Map<String,Object> opts)voidpublish(String body, Map<String,Object> opts, String routingKey)voidserve()OpflowEngine.ConsumerInfosubscribe(OpflowPubsubListener newListener)
-
Constructor Details
-
Method Details
-
publish
-
publish
-
publish
-
publish
public void publish(byte[] body) -
publish
-
publish
-
subscribe
-
serve
public final void serve() -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
check
-
getEngine
-
getExecutor
-
getComponentId
-
getPrefetchCount
public int getPrefetchCount() -
getSubscriberName
-
getSubscriberLimit
public int getSubscriberLimit() -
getRecyclebinName
-
getRedeliveredLimit
public int getRedeliveredLimit()
-