james-mime4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: Is MessageBuilder#parseMessage thread safe?
Date Thu, 15 Dec 2011 12:12:27 GMT
On Thu, 2011-12-15 at 10:52 +0100, Lukáš Vlček wrote:
> Hi,
> 
> is MessageBuilder#parseMessage thread safe?

MessageBuilder interface is immutable and is expected to be state-less.
Therefore, it is also expected to be thread-safe. DefaultMessageBuilder
is conditionally thread-safe but it is also cheap, so it is perfectly ok
to create a new instance of it for each message.  

Oleg



Mime
View raw message