Package com.netflix.suro.message

Examples of com.netflix.suro.message.SerDe


public class SerDeFactory {
    private static final Logger log = LoggerFactory.getLogger(SerDeFactory.class);
    private static ConcurrentMap<String, SerDe> map = new ConcurrentHashMap<String, SerDe>();

    public static SerDe create(String clazz) {
        SerDe serDe = map.get(clazz);
        if (serDe == null) {
            try {
                serDe = (SerDe) Class.forName(clazz).newInstance();
                map.putIfAbsent(clazz, serDe);
            } catch (Exception e) {
View Full Code Here

TOP

Related Classes of com.netflix.suro.message.SerDe

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.