object Consumer
- Alphabetic
- By Inheritance
- Consumer
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- case class DecodingFailure(msg: String) extends Throwable with NoStackTrace with Product with Serializable
- sealed abstract class Options extends AnyRef
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
def
create[F[_]](client: T, topic: Topic, sub: Subscription)(implicit arg0: Concurrent[F], arg1: ContextShift[F]): Resource[F, Consumer[F]]
It creates a simple Consumer with default options.
It creates a simple Consumer with default options.
Note that this does not create a subscription to any Topic, you can use Consumer#subscribe for this purpose.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
loggingMessageDecoder[F[_], E](c: Consumer[F], logAction: (E) ⇒ (URL) ⇒ F[Unit])(implicit arg0: MonadError[F, Throwable], arg1: Parallel[F], arg2: Inject[E, Array[Byte]]): Pipe[F, Message[Array[Byte]], E]
A simple message decoder that uses a cats.Inject instance to deserialise consumed messages.
A simple message decoder that uses a cats.Inject instance to deserialise consumed messages.
Consumed messages will be logged using the given
logAction
. -
def
messageDecoder[F[_], E](c: Consumer[F])(implicit arg0: MonadError[F, Throwable], arg1: Parallel[F], arg2: Inject[E, Array[Byte]]): Pipe[F, Message[Array[Byte]], E]
A simple message decoder that uses a cats.Inject instance to deserialise consumed messages.
A simple message decoder that uses a cats.Inject instance to deserialise consumed messages.
Messages will not be logged by default.
-
def
multiTopic[F[_]](client: T, topicPattern: Pattern, sub: Subscription)(implicit arg0: Concurrent[F], arg1: ContextShift[F]): Resource[F, Consumer[F]]
It creates a simple Consumer for a multi-topic subscription.
It creates a simple Consumer for a multi-topic subscription.
Find out more at https://pulsar.apache.org/docs/en/concepts-messaging/#multi-topic-subscriptions
Note that this does not create a subscription to any Topic, you can use Consumer#subscribe for this purpose.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
withOptions[F[_]](client: T, topic: Topic, sub: Subscription, opts: Options)(implicit arg0: Concurrent[F], arg1: ContextShift[F]): Resource[F, Consumer[F]]
It creates a simple Consumer with the supplied options.
It creates a simple Consumer with the supplied options.
Note that this does not create a subscription to any Topic, you can use Consumer#subscribe for this purpose.
-
object
Options
Consumer options such as subscription initial position.