Interface IResponder<T extends IdBean>
- All Superinterfaces:
AutoCloseable,IBeanClass<T>,IConnection,IRequestResponseConnection,IURIConnection
- All Known Implementing Classes:
ResponderImpl
A responder is an object that can respond to a topic posted by a poster.
One or more responders may be registered and they post for a given request
to the response topic.
The implementation of IPoster blocks until it thinks (via timeout) all responses
are in then collates them (depending on response object, for instance detectors)
and returns.
-
Method Summary
Modifier and TypeMethodDescriptionvoidsetResponseCreator(IResponseCreator<T> responder) The responder will be asked to respond to posts on the request topic of this object type.Methods inherited from interface org.eclipse.scanning.api.event.core.IBeanClass
getBeanClass, setBeanClassMethods inherited from interface org.eclipse.scanning.api.event.core.IConnection
close, disconnect, isConnectedMethods inherited from interface org.eclipse.scanning.api.event.core.IRequestResponseConnection
getRequestTopic, getResponseTopic, setRequestTopic, setResponseTopicMethods inherited from interface org.eclipse.scanning.api.event.core.IURIConnection
getConnectorService, getUri
-
Method Details
-
setResponseCreator
The responder will be asked to respond to posts on the request topic of this object type.- Parameters:
responder-- Throws:
EventException
-