Class

com.sksamuel.pulsar4s

DefaultProducer

Related Doc: package pulsar4s

Permalink

class DefaultProducer[T] extends Producer[T]

Linear Supertypes
Producer[T], Logging, Closeable, AutoCloseable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DefaultProducer
  2. Producer
  3. Logging
  4. Closeable
  5. AutoCloseable
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DefaultProducer(producer: JProducer[T])

    Permalink

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. 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
    DefaultProducerProducer → Closeable → AutoCloseable
  7. 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.

    Definition Classes
    DefaultProducerProducer
  8. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def flush(): Unit

    Permalink
    Definition Classes
    DefaultProducerProducer
  12. def flushAsync[F[_]](implicit arg0: AsyncHandler[F]): F[Unit]

    Permalink
    Definition Classes
    DefaultProducerProducer
  13. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  15. def isConnected: Boolean

    Permalink
    Definition Classes
    DefaultProducerProducer
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. 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.

    Definition Classes
    DefaultProducerProducer
  18. val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  19. def name: ProducerName

    Permalink

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

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

    Definition Classes
    DefaultProducerProducer
  20. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  23. 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.

    Definition Classes
    DefaultProducerProducer
  24. 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.

    Definition Classes
    DefaultProducerProducer
  25. 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.

    Definition Classes
    DefaultProducerProducer
  26. 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.

    Definition Classes
    DefaultProducerProducer
  27. def stats: ProducerStats

    Permalink
    Definition Classes
    DefaultProducerProducer
  28. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  30. def topic: Topic

    Permalink

    Returns the Topic that a producer is publishing to.

    Returns the Topic that a producer is publishing to.

    Definition Classes
    DefaultProducerProducer
  31. final def wait(): Unit

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

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

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

Inherited from Producer[T]

Inherited from Logging

Inherited from Closeable

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from Any

Ungrouped