Interface IResponder<T extends IdBean>

All Superinterfaces:
AutoCloseable, IBeanClass<T>, IConnection, IRequestResponseConnection, IURIConnection
All Known Implementing Classes:
ResponderImpl

public interface IResponder<T extends IdBean> extends IRequestResponseConnection, IBeanClass<T>
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 Details

    • setResponseCreator

      void setResponseCreator(IResponseCreator<T> responder) throws EventException
      The responder will be asked to respond to posts on the request topic of this object type.
      Parameters:
      responder -
      Throws:
      EventException