com.atlassian.bamboo.serialization.xstream
Class ConcurrentHashMapConverter

java.lang.Object
  extended by com.atlassian.bamboo.serialization.xstream.AbstractXStreamConverterAdapter
      extended by com.atlassian.bamboo.serialization.xstream.ConcurrentHashMapConverter
All Implemented Interfaces:
NeedsXstream, com.thoughtworks.xstream.converters.Converter, com.thoughtworks.xstream.converters.ConverterMatcher

public class ConcurrentHashMapConverter
extends AbstractXStreamConverterAdapter

Converts ConcurrentHashMap using MapConverter.

Using this converter means that we lose the original initial parameters: initialCapacity, loadFactor and concurrencyLevel. Given that 9x% of the time ConcurrentHashMap is created with default values of those parameters, it seems a reasonable trade-off for not having all the internals of CHM in the serialized XML.


Constructor Summary
ConcurrentHashMapConverter()
           
 
Method Summary
 boolean canConvert(java.lang.Class type)
           
 
Methods inherited from class com.atlassian.bamboo.serialization.xstream.AbstractXStreamConverterAdapter
canDelegateConvert, init, marshal, unmarshal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConcurrentHashMapConverter

public ConcurrentHashMapConverter()
Method Detail

canConvert

public boolean canConvert(java.lang.Class type)


Copyright © 2011 Atlassian. All Rights Reserved.