Class SafeSerdes
- java.lang.Object
-
- io.streamthoughts.azkarra.commons.error.SafeSerdes
-
public class SafeSerdes extends Object
Factory for creating serializers / safe-deserializers.
-
-
Constructor Summary
Constructors Constructor Description SafeSerdes()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.apache.kafka.common.serialization.Serde<Double>
Double()
static org.apache.kafka.common.serialization.Serde<Double>
Double(Double defaultValue)
static org.apache.kafka.common.serialization.Serde<Float>
Float()
static org.apache.kafka.common.serialization.Serde<Float>
Float(Float defaultValue)
static org.apache.kafka.common.serialization.Serde<Integer>
Integer()
static org.apache.kafka.common.serialization.Serde<Long>
Long()
static org.apache.kafka.common.serialization.Serde<Long>
Long(Long defaultValue)
static <T> org.apache.kafka.common.serialization.Serde<T>
serdeFrom(Class<T> type, T defaultValue)
static <T> org.apache.kafka.common.serialization.Serde<T>
serdeFrom(org.apache.kafka.common.serialization.Serde<T> serde, T defaultValue)
static <T> org.apache.kafka.common.serialization.Serde<T>
serdeFrom(org.apache.kafka.common.serialization.Serializer<T> serializer, org.apache.kafka.common.serialization.Deserializer<T> deserializer, T defaultValue)
static org.apache.kafka.common.serialization.Serde<String>
String()
static org.apache.kafka.common.serialization.Serde<String>
String(String defaultValue)
static org.apache.kafka.common.serialization.Serde<UUID>
UUID()
static org.apache.kafka.common.serialization.Serde<UUID>
UUID(UUID uuid)
-
-
-
Method Detail
-
serdeFrom
public static <T> org.apache.kafka.common.serialization.Serde<T> serdeFrom(org.apache.kafka.common.serialization.Serde<T> serde, T defaultValue)
-
serdeFrom
public static <T> org.apache.kafka.common.serialization.Serde<T> serdeFrom(org.apache.kafka.common.serialization.Serializer<T> serializer, org.apache.kafka.common.serialization.Deserializer<T> deserializer, T defaultValue)
-
serdeFrom
public static <T> org.apache.kafka.common.serialization.Serde<T> serdeFrom(Class<T> type, T defaultValue)
-
String
public static org.apache.kafka.common.serialization.Serde<String> String()
-
String
public static org.apache.kafka.common.serialization.Serde<String> String(String defaultValue)
-
Long
public static org.apache.kafka.common.serialization.Serde<Long> Long()
-
Double
public static org.apache.kafka.common.serialization.Serde<Double> Double()
-
Double
public static org.apache.kafka.common.serialization.Serde<Double> Double(Double defaultValue)
-
Integer
public static org.apache.kafka.common.serialization.Serde<Integer> Integer()
-
Float
public static org.apache.kafka.common.serialization.Serde<Float> Float()
-
UUID
public static org.apache.kafka.common.serialization.Serde<UUID> UUID()
-
-