Class NatsEndpointManager
java.lang.Object
org.wso2.carbon.inbound.endpoint.common.AbstractInboundEndpointManager
org.wso2.carbon.inbound.endpoint.protocol.nats.management.NatsEndpointManager
- All Implemented Interfaces:
InboundEndpointManager
Manager which handles NATS Listeners activities for Inbound Endpoints. This is the central place to mange Http Listeners
for Inbound endpoints
-
Field Summary
Fields inherited from class org.wso2.carbon.inbound.endpoint.common.AbstractInboundEndpointManager
dataStore -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcloseEndpoint(int port) Stop Inbound Endpointstatic NatsEndpointManagerbooleanstartEndpoint(int port, String name, org.apache.synapse.inbound.InboundProcessorParams params) Start NATS Inbound endpointbooleanstartListener(int port, String name, org.apache.synapse.inbound.InboundProcessorParams inboundParameters) Start NATS ListenerMethods inherited from class org.wso2.carbon.inbound.endpoint.common.AbstractInboundEndpointManager
getEndpointName
-
Constructor Details
-
NatsEndpointManager
public NatsEndpointManager()
-
-
Method Details
-
getInstance
-
startListener
public boolean startListener(int port, String name, org.apache.synapse.inbound.InboundProcessorParams inboundParameters) Start NATS Listener- Parameters:
port- port (not needed for NATS Inbound Endpoint)name- endpoint nameinboundParameters- inbound endpoint params
-
startEndpoint
public boolean startEndpoint(int port, String name, org.apache.synapse.inbound.InboundProcessorParams params) Start NATS Inbound endpoint- Parameters:
port- port (not needed for NATS Inbound Endpoint)name- endpoint nameparams- inbound endpoint params
-
closeEndpoint
public void closeEndpoint(int port) Stop Inbound Endpoint- Parameters:
port- port of the endpoint (not needed for NATS Inbound Endpoint)
-
getMessageConsumer
-