abstract class ProducerActor[T] extends Actor with Logging
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- ProducerActor
- Logging
- Actor
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new ProducerActor(kafka_router: ActorRef, topic: Option[TopicModel])
Type Members
-
type
Receive = PartialFunction[Any, Unit]
- Definition Classes
- Actor
Abstract Value Members
-
abstract
def
generateOutputJsonMessage(input: T): String
Used when writing to topics with data type "json" or "avro"
- abstract def mainTask(): Unit
-
abstract
def
retrievePartitionKey: (T) ⇒ String
Defines a function to extract the key to be used to identify the landing partition in kafka topic, given a message of type T
Defines a function to extract the key to be used to identify the landing partition in kafka topic, given a message of type T
- returns
a function that extract the partition key as String from the T instance to be sent to kafka
Concrete 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
-
def
aroundPostRestart(reason: Throwable): Unit
- Attributes
- protected[akka]
- Definition Classes
- Actor
-
def
aroundPostStop(): Unit
- Attributes
- protected[akka]
- Definition Classes
- Actor
-
def
aroundPreRestart(reason: Throwable, message: Option[Any]): Unit
- Attributes
- protected[akka]
- Definition Classes
- Actor
-
def
aroundPreStart(): Unit
- Attributes
- protected[akka]
- Definition Classes
- Actor
-
def
aroundReceive(receive: akka.actor.Actor.Receive, msg: Any): Unit
- Attributes
- protected[akka]
- Definition Classes
- Actor
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
implicit
val
context: ActorContext
- Definition Classes
- Actor
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
generateOutputBinaryMessage(input: T): Array[Byte]
Used when writing to topics with data type "binary"
- val generateOutputMessage: Option[(T) ⇒ Array[Byte]]
-
def
generateOutputPlaintextMessage(input: T): String
Used when writing to topics with data type "plaintext"
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val kafka_router: ActorRef
-
val
logger: WaspLogger
- Attributes
- protected
- Definition Classes
- Logging
- lazy val maybeKeySchema: Option[String]
-
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()
-
def
postRestart(reason: Throwable): Unit
- Definition Classes
- Actor
- Annotations
- @throws( classOf[java.lang.Exception] )
-
def
postStop(): Unit
- Definition Classes
- ProducerActor → Actor
-
def
preRestart(reason: Throwable, message: Option[Any]): Unit
- Definition Classes
- Actor
- Annotations
- @throws( classOf[java.lang.Exception] )
-
def
preStart(): Unit
- Definition Classes
- Actor
- Annotations
- @throws( classOf[java.lang.Exception] )
-
def
receive: akka.actor.Actor.Receive
- Definition Classes
- ProducerActor → Actor
- def retrievePartitionKeyBytes: (T) ⇒ Array[Byte]
-
implicit final
val
self: ActorRef
- Definition Classes
- Actor
-
def
sendMessage(input: T): Unit
Method to send to Kafka a specific message to be added to the raw topic and eventually to a custom topic.
-
final
def
sender(): ActorRef
- Definition Classes
- Actor
- def stopMainTask(): Option[Boolean]
-
def
supervisorStrategy: SupervisorStrategy
- Definition Classes
- Actor
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- implicit val system: ActorSystem
- var task: Option[Cancellable]
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- val topic: Option[TopicModel]
- lazy val topicSchema: String
- lazy val topicSchemaType: String
-
def
unhandled(message: Any): Unit
- Definition Classes
- Actor
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
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()