object DurableQueue
- Alphabetic
- By Inheritance
- DurableQueue
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- sealed abstract class Command extends AnyRef
Commands instruct the queue to do things
- final case class CommandReply[A](event: CommandReplyEvent, carry: Option[A]) extends CommandReplyEvent with Product with Serializable
A reply to a command request
A reply to a command request
- A
The type of data carried through
- event
An event in relation to a reply
- carry
Any data to be carried through the command request
- sealed abstract class CommandReplyEvent extends AnyRef
A reply to a command
- final case class CommandRequest[A](command: Command, carry: Option[A]) extends Product with Serializable
Send a command to a queue with optional data to carry through - will cause a CommandReply to be replied
Send a command to a queue with optional data to carry through - will cause a CommandReply to be replied
- A
The type of data to carry through
- command
The command to send
- carry
The data to carry though
- trait Committable extends AnyRef
Something that can be committed, having a source topic and offset.
- sealed abstract class Event extends AnyRef
An event is something that a queue yields when it is being tailed
- type Headers = Seq[(String, ByteString)]
Headers are additional data that can be carried with the data of a message
- trait Provider[T <: DurableQueue] extends AnyRef
A
Provider
is used byApplication
to acquire an instance of aDurableQueue
.A
Provider
is used byApplication
to acquire an instance of aDurableQueue
. Providers are mixed into the class that extendsApplication
. - final case class Received(key: Long, data: ByteString, offset: Long, headers: Headers, source: Topic) extends Event with Committable with Product with Serializable
Represents bytes being received on the queue along with its associated offset
Represents bytes being received on the queue along with its associated offset
- key
a key for partitioning i.e. "grouping" data belonging to the same "thing" - like a database identifier
- data
the data received
- offset
the offset of the data in the queue
- headers
additional headers associated with the data
- source
the topic that omitted the event
- final case class Send(key: Long, data: ByteString, target: Topic, headers: Headers) extends Command with Product with Serializable
Send data to a append to a queue with optional data to carry through - will cause a SendAck to be replied
Send data to a append to a queue with optional data to carry through - will cause a SendAck to be replied
- key
a key for partitioning i.e. "grouping" data belonging to the same "thing" - like a database identifier
- data
The data to send
- target
The target topic
- headers
additional headers associated with the data
- type Topic = String
A topic is an identifier representing a queue for appending and tailing to and from respectively.
A topic is an identifier representing a queue for appending and tailing to and from respectively. By convention, only [a-zA-Z0-9\\._\\-] should be allowed as per Kafka. Additionally, colon delimited names (:) may be used as a prefix to denote namespaces. The absence of any namespaces will result in a "default" name space being used. The default namespace is provided on instantiating the DurableQueue.
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
- val EmptyHeaders: Headers
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- object CommandRequest extends Serializable
- object Send extends Serializable
- case object SendAck extends CommandReplyEvent with Product with Serializable
An ack to a send - what the ack represents is an implementation concern but, at a minimum, it represents that the queue has received the data for a topic and persisted it