object HeaderDeserializer
- Source
- HeaderDeserializer.scala
- Alphabetic
- By Inheritance
- HeaderDeserializer
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
type
Attempt[A] = HeaderDeserializer[Either[Throwable, A]]
Alias for
HeaderDeserializer[Either[Throwable, A]]
.
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 apply[A](implicit deserializer: HeaderDeserializer[A]): HeaderDeserializer[A]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def attempt[A](implicit deserializer: Attempt[A]): Attempt[A]
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
const[A](a: A): HeaderDeserializer[A]
Creates a new HeaderDeserializer which deserializes all bytes to the specified value of type
A
. -
def
delegate[A](deserializer: KafkaDeserializer[A]): HeaderDeserializer[A]
Creates a new HeaderDeserializer which delegates deserialization to the specified Kafka
Deserializer
.Creates a new HeaderDeserializer which delegates deserialization to the specified Kafka
Deserializer
. Please note that theclose
andconfigure
functions won't be called for the delegate. Also, the topic is an emptyString
and no headers are provided. - implicit val double: Attempt[Double]
-
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] )
- implicit val float: Attempt[Float]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
implicit
val
identity: HeaderDeserializer[Array[Byte]]
The identity HeaderDeserializer, which does not perform any kind of deserialization, simply using the input bytes as the output.
-
def
instance[A](f: (Array[Byte]) ⇒ A): HeaderDeserializer[A]
Creates a new HeaderDeserializer from the specified function.
- implicit val int: Attempt[Int]
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- implicit val long: Attempt[Long]
- implicit val monad: Monad[HeaderDeserializer]
-
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()
-
implicit
def
option[A](implicit deserializer: HeaderDeserializer[A]): HeaderDeserializer[Option[A]]
The option HeaderDeserializer returns
None
when the bytes arenull
, and otherwise deserializes using the deserializer for the typeA
, wrapping the result inSome
. - implicit val short: Attempt[Short]
-
def
string(charset: Charset): HeaderDeserializer[String]
Creates a new HeaderDeserializer which deserializes
String
values using the specifiedCharset
.Creates a new HeaderDeserializer which deserializes
String
values using the specifiedCharset
. Note that the defaultString
deserializer usesUTF-8
. - implicit val string: HeaderDeserializer[String]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- implicit val unit: HeaderDeserializer[Unit]
-
def
uuid(charset: Charset): Attempt[UUID]
Creates a new HeaderDeserializer which deserializes
String
values using the specifiedCharset
asUUID
s.Creates a new HeaderDeserializer which deserializes
String
values using the specifiedCharset
asUUID
s. Note that the defaultUUID
deserializer usesUTF-8
. - implicit val uuid: Attempt[UUID]
-
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()