Trait

com.sksamuel.pulsar4s

Producer

Related Doc: package pulsar4s

Permalink

trait Producer[T] extends Closeable with Logging

Linear Supertypes
Logging, Closeable, AutoCloseable, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Producer
  2. Logging
  3. Closeable
  4. AutoCloseable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def close(): Unit

    Permalink

    Close the Producer and releases resources allocated.

    Close the Producer and releases resources allocated.

    No more writes will be accepted from this producer. Waits until all pending write request are persisted. In case of errors, pending writes will not be retried.

    Definition Classes
    Producer → Closeable → AutoCloseable
  2. abstract def closeAsync[F[_]](implicit arg0: AsyncHandler[F]): F[Unit]

    Permalink

    Close the Producer, releases resources allocated, and returns an effect that is completed when the close operation has completed.

    Close the Producer, releases resources allocated, and returns an effect that is completed when the close operation has completed.

    No more writes will be accepted from this producer. Waits until all pending write request are persisted. In case of errors, pending writes will not be retried.

  3. abstract def flush(): Unit

    Permalink
  4. abstract def flushAsync[F[_]](implicit arg0: AsyncHandler[F]): F[Unit]

    Permalink
  5. abstract def isConnected: Boolean

    Permalink
  6. abstract def lastSequenceId: SequenceId

    Permalink

    Get the last sequence id that was published by this producer.

    Get the last sequence id that was published by this producer.

    This represented either the automatically assigned or custom sequence id that was published and acknowledged by the broker.

    After recreating a producer with the same producer name, this will return the last message that was published in the previous producer session, or -1 if there no message was ever published.

  7. abstract def name: ProducerName

    Permalink

    Returns the ProducerName which could have been specified by the client or assigned by the system.

  8. abstract def send(msg: ProducerMessage[T]): Try[MessageId]

    Permalink

    Sends a ProducerMessage of type T.

    Sends a ProducerMessage of type T. This method can be used when you want to specify properties on a message such as the event time, key and so on.

    This call will block until it is successfully acknowledged by the Pulsar broker.

  9. abstract def send(t: T): Try[MessageId]

    Permalink

    Sends a message of type T.

    Sends a message of type T. The message sent will have no key.

    This method can be used when you have no need to set the other properties of a message, such as the event time, key, headers and so on. The producer will generate an appropriate Pulsar ProducerMessage with this t set as the value.

    This call will block until it is successfully acknowledged by the Pulsar broker.

  10. abstract def sendAsync[F[_]](msg: ProducerMessage[T])(implicit arg0: AsyncHandler[F]): F[MessageId]

    Permalink

    Asynchronously sends a ProducerMessage of type T, returning an effect which will be completed with the MessageId once the message is acknowledged by the Pulsar broker.

    Asynchronously sends a ProducerMessage of type T, returning an effect which will be completed with the MessageId once the message is acknowledged by the Pulsar broker.

    This method can be used when you want to specify properties on a message such as the event time, key and so on.

  11. abstract def sendAsync[F[_]](t: T)(implicit arg0: AsyncHandler[F]): F[MessageId]

    Permalink

    Asynchronously sends a message of type T, returning an effect which will be completed with the MessageId once the message is acknowledged by the Pulsar broker.

    Asynchronously sends a message of type T, returning an effect which will be completed with the MessageId once the message is acknowledged by the Pulsar broker.

    This method can be used when you have no need to set the other properties of a message, such as the event time, key, headers and so on. The producer will generate an appropriate Pulsar ProducerMessage with this t set as the value.

  12. abstract def stats: ProducerStats

    Permalink
  13. abstract def topic: Topic

    Permalink

    Returns the Topic that a producer is publishing to.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  10. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  12. val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  13. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  17. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  18. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Logging

Inherited from Closeable

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from Any

Ungrouped