Table of Contents

Interface IPollableSource

Namespace
Steeltoe.Stream.Binder
Assembly
Steeltoe.Stream.Abstractions.dll

An abstraction which defines a mechanism to poll a consumer

public interface IPollableSource

Methods

Poll(object)

Poll the consumer

bool Poll(object handler)

Parameters

handler object

the handler to process message

Returns

bool

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).

bool Poll(object handler, Type type)

Parameters

handler object

the handler

type Type

the type of the payload

Returns

bool

true if a message was handled