[
https://issues.apache.org/jira/browse/LOG4J2-1681?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15647489#comment-15647489
]
Remko Popma commented on LOG4J2-1681:
-------------------------------------
Yes and there is no problem. These three filters are created with a map which I
plan to change to a SortedArrayStringMap. Once constructed this map does not
change. Because it is effectively immutable it is safe for multiple threads to
query the SortedArrayStringMap concurrently. (Just like it is safe for the
current implementations to use a HashMap.)
> Make indexed getter methods in SortedArrayStringMap public
> ----------------------------------------------------------
>
> Key: LOG4J2-1681
> URL: https://issues.apache.org/jira/browse/LOG4J2-1681
> Project: Log4j 2
> Issue Type: Improvement
> Components: API
> Affects Versions: 2.7
> Reporter: Remko Popma
> Assignee: Remko Popma
> Fix For: 2.8
>
>
> I am planning to use SortedArrayStringMap to make MapFilter and its
> subclasses garbage-free. It would be helpful if the following methods were
> public:
> {code}
> String getKeyAt(final int index) {...}
> <V> V getValueAt(final int index) {...}
> {code}
> This would facilitate looping over the map contents without instantiating a
> consumer.
> I am not proposing to change the {{StringMap}} interface, this is only for
> classes that are using the {{SortedArrayStringMap}} implementation class.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]