Class ConnectorsService
java.lang.Object
org.apache.activemq.artemis.core.server.impl.ConnectorsService
- All Implemented Interfaces:
ActiveMQComponent
ConnectorsService will pool some resource for updates, e.g. Twitter, then the changes are picked and converted into a
ServerMessage for a given destination (queue).
It may also listen to a queue, and forward them (e.g. messages arriving at the queue are picked and tweeted to some Twitter account).
-
Constructor Summary
ConstructorsConstructorDescriptionConnectorsService(Configuration configuration, StorageManager storageManager, ScheduledExecutorService scheduledPool, PostOffice postOffice, ServiceRegistry serviceRegistry) -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateService(ConnectorServiceConfiguration info, ConnectorServiceFactory factory) voiddestroyService(String name) booleanvoidstart()voidstop()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.activemq.artemis.core.server.ActiveMQComponent
asyncStop
-
Constructor Details
-
ConnectorsService
public ConnectorsService(Configuration configuration, StorageManager storageManager, ScheduledExecutorService scheduledPool, PostOffice postOffice, ServiceRegistry serviceRegistry)
-
-
Method Details
-
start
- Specified by:
startin interfaceActiveMQComponent- Throws:
Exception
-
createService
public void createService(ConnectorServiceConfiguration info, ConnectorServiceFactory factory) throws Exception - Throws:
Exception
-
destroyService
- Throws:
Exception
-
stop
- Specified by:
stopin interfaceActiveMQComponent- Throws:
Exception
-
isStarted
public boolean isStarted()- Specified by:
isStartedin interfaceActiveMQComponent
-
getConnectors
-