abstract class MonitorDeserializer extends AnyRef
An interface that instructs Detective how to deserialize messages from byte arrays into concrete
Java objects. If you need to convert your objects into some custom structure for use in your
implementation of Detective, you can extend this class and override the deserialize method
to implement your deserialization algorithm.
Instances of this class should have a zero-arg constructor.
- Alphabetic
- By Inheritance
- MonitorDeserializer
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new MonitorDeserializer()
Abstract Value Members
-
abstract
def
deserialize(offset: Long, partition: Int, timestamp: Long, keyBytes: Array[Byte], valueBytes: Array[Byte]): MonitorObjectEnvelope
This method implements the actual deserialization behavior for a particular
MonitorDeserializerinstance.This method implements the actual deserialization behavior for a particular
MonitorDeserializerinstance. If you're implementing your own custom deserializer this is the message you should hook into.- offset
The message offset
- partition
The partition the message appeared on
- timestamp
The Kafka timestamp for the message
- keyBytes
The key byte array that the Kafka Consumer retrieved
- valueBytes
The value byte array that the Kafka Consumer retrieved
- returns
A MonitorObjectEnvelope containing the deserialized, packed message.
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
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
-
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
packEnvelope(offset: Long, partition: Int, timestamp: Long, deserializedKeyClass: Class[_], deserializedKey: AnyRef, deserializedValueClass: Class[_], deserializedValue: AnyRef): MonitorObjectEnvelope
Pack a
MonitorObjectEnvelopewith the provided values.Pack a
MonitorObjectEnvelopewith the provided values. Today, this method is a simple pass through to theMonitorObjectEnvelopeconstructor, but in the future we may change this implementation to do some sanity checking. It's recommended to use this method to pack an envelope in custom deserializers instead of doing it directly for the best compatibility.- offset
The offset of the message to pack
- partition
The partition of the message to pack
- timestamp
The timestamp of the message to pack
- deserializedKeyClass
The
keyClassof the message to pack.- deserializedKey
The
keyInstanceof the message to pack.- deserializedValueClass
The
valueClassof the message to pack.- deserializedValue
The
valueInstanceof the message to pack.
-
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( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )