Source:
<code>private void registerJavaTypeSerializers() { registerConstant(Date.class, new DateSerializer()); registerConstant(BigInteger.class, new BigIntegerSerializer()); registerConstant(BigDecimal.class, new BigDecimalSerializer()); registerConstant(Class.class, new ClassSerializer()); registerConstant(Enum.class, new EnumSerializer()); registerConstant(ArrayList.class, new ArrayListStreamSerializer()); registerConstant(LinkedList.class, new LinkedListStreamSerializer()); MapStreamSerializer mapSerializer = new MapStreamSerializer(); registerConstant(HashMap.class, mapSerializer); <START> registerConstant(ConcurrentHashMap.class, mapSerializer); <END> registerConstant(HashSet.class, new SetStreamSerializer()); safeRegister(Serializable.class, javaSerializerAdapter); safeRegister(Externalizable.class, javaExternalizableAdapter); safeRegister(HazelcastJsonValue.class, new HazelcastJsonValueSerializer()); }</code><technical_language>If want guarantee type also, serializer work. ArrayList LinkedList serializer of that. said, reconsider concurrent List type support also. register concrete types maintainable me. register Map.class, List.class</technical_language>

Target:
private void registerJavaTypeSerializers() { registerConstant(Class.class, new ClassSerializer()); registerConstant(Date.class, new DateSerializer()); registerConstant(BigInteger.class, new BigIntegerSerializer()); registerConstant(BigDecimal.class, new BigDecimalSerializer()); registerConstant(Enum.class, new EnumSerializer()); registerConstant(ArrayList.class, new ArrayListStreamSerializer()); registerConstant(LinkedList.class, new LinkedListStreamSerializer()); registerConstant(CopyOnWriteArrayList.class, new CopyOnWriteArrayListStreamSerializer()); registerConstant(HashMap.class, new HashMapStreamSerializer()); registerConstant(ConcurrentSkipListMap.class, new ConcurrentSkipListMapStreamSerializer()); registerConstant(ConcurrentHashMap.class, new ConcurrentHashMapStreamSerializer()); registerConstant(LinkedHashMap.class, new LinkedHashMapStreamSerializer()); registerConstant(TreeMap.class, new TreeMapStreamSerializer()); registerConstant(HashSet.class, new HashSetStreamSerializer()); registerConstant(TreeSet.class, new TreeSetStreamSerializer()); registerConstant(LinkedHashSet.class, new LinkedHashSetStreamSerializer()); registerConstant(CopyOnWriteArraySet.class, new CopyOnWriteArraySetStreamSerializer()); registerConstant(ConcurrentSkipListSet.class, new ConcurrentSkipListSetStreamSerializer()); registerConstant(ArrayDeque.class, new ArrayDequeStreamSerializer()); registerConstant(LinkedBlockingQueue.class, new LinkedBlockingQueueStreamSerializer()); registerConstant(ArrayBlockingQueue.class, new ArrayBlockingQueueStreamSerializer()); registerConstant(PriorityBlockingQueue.class, new PriorityBlockingQueueStreamSerializer()); registerConstant(DelayQueue.class, new DelayQueueStreamSerializer()); registerConstant(SynchronousQueue.class, new SynchronousQueueStreamSerializer()); registerConstant(LinkedTransferQueue.class, new LinkedTransferQueueStreamSerializer()); safeRegister(Serializable.class, javaSerializerAdapter); safeRegister(Externalizable.class, javaExternalizableAdapter); safeRegister(HazelcastJsonValue.class, new HazelcastJsonValueSerializer()); }