Interface IPollableSource<H>
An abstraction which defines a mechanism to poll a consumer
[Obsolete("This feature will be removed in the next major version. See https://steeltoe.io/docs/v3/obsolete for details.")]
public interface IPollableSource<in H> : IPollableSourceType Parameters
- H
- the handler type 
- Inherited Members
Methods
Poll(H)
Poll the consumer
bool Poll(H handler)Parameters
- handlerH
- the handler to process message 
Returns
- bool
- true if a message was handled 
Poll(H, Type)
Poll the consumer and convert the payload to the specified type. Throw a RequeueCurrentMessageException to force the current message to be requeued in the broker(after retries are exhausted, if configured).
bool Poll(H handler, Type type)Parameters
- handlerH
- the handler 
- typeType
- the type of the payload 
Returns
- bool
- true if a message was handled