public interface ForkliftConnectorI extends LogicalSourceContext
| Modifier and Type | Method and Description |
|---|---|
ForkliftConsumerI |
getConsumerForSource(SourceI source)
Retrieves the
consumer instance that reads from
the given source. |
default ForkliftSerializer |
getDefaultSerializer()
Gives the
serializer to use for explicitly
pre-serializing messages destined to sources on this connector, but which
need to be sent by an external application. |
ForkliftConsumerI |
getQueue(java.lang.String name)
Retrieves the
consumer instance that reads from
the queue with the given name. |
ForkliftProducerI |
getQueueProducer(java.lang.String name)
Gives a
producer instance that writes
to the given queue. |
ForkliftConsumerI |
getTopic(java.lang.String name)
Retrieves a
consumer instance that reads from
the topic with the given name. |
ForkliftProducerI |
getTopicProducer(java.lang.String name)
Gives a
producer instance that writes
to the given topic. |
void |
start()
Starts the given connector.
|
void |
stop()
Stops the given connector, invalidating it's current state.
|
default boolean |
supportsOrder()
Does this connector support the
Order annotation
on consumers? |
default boolean |
supportsResponse()
Does this connector support the
Response annotation
on consumers? |
mapSourcevoid start()
throws ConnectorException
ConnectorException - if there was a problem initializing the state
of this connector or making a connectionvoid stop() throws ConnectorException
ConnectorException - if there was a problem un-initializing the state
of this connectorForkliftConsumerI getConsumerForSource(SourceI source) throws ConnectorException
consumer instance that reads from
the given source.source - the source to read fromConnectorException - if an error occurred interacting with the connectorjava.lang.RuntimeException - if reading from the given source is not supportedForkliftConsumerI getQueue(java.lang.String name) throws ConnectorException
consumer instance that reads from
the queue with the given name.name - the name of the topic to read fromConnectorException - if an error occurred interacting with the connectorjava.lang.RuntimeException - if reading from a queue is not supportedForkliftConsumerI getTopic(java.lang.String name) throws ConnectorException
consumer instance that reads from
the topic with the given name.name - the name of the topic to read fromConnectorException - if an error occurred interacting with the connectorjava.lang.RuntimeException - if reading from a topic is not supportedForkliftProducerI getQueueProducer(java.lang.String name)
producer instance that writes
to the given queue.name - the name of the queue to write toForkliftProducerI getTopicProducer(java.lang.String name)
producer instance that writes
to the given topic.name - the name of the topic to write todefault ForkliftSerializer getDefaultSerializer()
serializer to use for explicitly
pre-serializing messages destined to sources on this connector, but which
need to be sent by an external application.default boolean supportsOrder()
Order annotation
on consumers?Orderdefault boolean supportsResponse()
Response annotation
on consumers?Response