INT-1865 polishing, made attributes 'volatile'
This commit is contained in:
@@ -30,7 +30,7 @@ import org.springframework.jdbc.core.namedparam.SqlParameterSource;
|
||||
*/
|
||||
public class BeanPropertySqlParameterSourceFactory implements SqlParameterSourceFactory {
|
||||
|
||||
private Map<String, Object> staticParameters;
|
||||
private volatile Map<String, Object> staticParameters;
|
||||
|
||||
public BeanPropertySqlParameterSourceFactory() {
|
||||
this.staticParameters = Collections.unmodifiableMap(new HashMap<String, Object>());
|
||||
|
||||
@@ -41,9 +41,9 @@ public class ExpressionEvaluatingSqlParameterSourceFactory extends AbstractExpre
|
||||
|
||||
private static final Object ERROR = new Object();
|
||||
|
||||
private Map<String, ?> staticParameters;
|
||||
private volatile Map<String, ?> staticParameters;
|
||||
|
||||
private Map<String, String> parameterExpressions;
|
||||
private volatile Map<String, String> parameterExpressions;
|
||||
|
||||
public ExpressionEvaluatingSqlParameterSourceFactory() {
|
||||
this.staticParameters = Collections.unmodifiableMap(new HashMap<String, Object>());
|
||||
@@ -109,7 +109,7 @@ public class ExpressionEvaluatingSqlParameterSourceFactory extends AbstractExpre
|
||||
|
||||
private final Object input;
|
||||
|
||||
private Map<String, Object> values = new HashMap<String, Object>();
|
||||
private volatile Map<String, Object> values = new HashMap<String, Object>();
|
||||
|
||||
private final Map<String, String> parameterExpressions;
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@ public class JdbcMessageHandler extends AbstractMessageHandler {
|
||||
|
||||
private volatile SqlParameterSourceFactory sqlParameterSourceFactory = new BeanPropertySqlParameterSourceFactory();
|
||||
|
||||
private boolean keysGenerated;
|
||||
private volatile boolean keysGenerated;
|
||||
|
||||
/**
|
||||
* Constructor taking {@link DataSource} from which the DB Connection can be obtained and the select query to
|
||||
|
||||
@@ -114,19 +114,19 @@ public class JdbcMessageStore extends AbstractMessageGroupStore implements Messa
|
||||
*/
|
||||
public static final String CREATED_DATE_KEY = JdbcMessageStore.class.getSimpleName() + ".CREATED_DATE";
|
||||
|
||||
private String region = "DEFAULT";
|
||||
private volatile String region = "DEFAULT";
|
||||
|
||||
private String tablePrefix = DEFAULT_TABLE_PREFIX;
|
||||
private volatile String tablePrefix = DEFAULT_TABLE_PREFIX;
|
||||
|
||||
private JdbcOperations jdbcTemplate;
|
||||
private volatile JdbcOperations jdbcTemplate;
|
||||
|
||||
private DeserializingConverter deserializer;
|
||||
private volatile DeserializingConverter deserializer;
|
||||
|
||||
private SerializingConverter serializer;
|
||||
private volatile SerializingConverter serializer;
|
||||
|
||||
private LobHandler lobHandler = new DefaultLobHandler();
|
||||
private volatile LobHandler lobHandler = new DefaultLobHandler();
|
||||
|
||||
private MessageMapper mapper = new MessageMapper();
|
||||
private volatile MessageMapper mapper = new MessageMapper();
|
||||
|
||||
/**
|
||||
* Convenient constructor for configuration use.
|
||||
|
||||
Reference in New Issue
Block a user