Interface IPollableSource
An abstraction which defines a mechanism to poll a consumer
Namespace: Steeltoe.Stream.Binder
Assembly: Steeltoe.Stream.Abstractions.dll
Syntax
public interface IPollableSource
Methods
| Edit this page View SourcePoll(Object)
Poll the consumer
Declaration
bool Poll(object handler)
Parameters
Type | Name | Description |
---|---|---|
System.Object | handler | the handler to process message |
Returns
Type | Description |
---|---|
System.Boolean | true if a message was handled |
Poll(Object, 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).
Declaration
bool Poll(object handler, Type type)
Parameters
Type | Name | Description |
---|---|---|
System.Object | handler | the handler |
Type | type | the type of the payload |
Returns
Type | Description |
---|---|
System.Boolean | true if a message was handled |