incubator-hama-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Edward J. Yoon" <edwardy...@apache.org>
Subject Re: Setter of message
Date Tue, 17 May 2011 06:50:27 GMT
> My understanding is that immutable object has some advantages such as thread safety in
the concurrent computation environment. So basically I prefer immutable object to mutable
one. 

I agree w/ you.

I just wanted to know whether there's some particular case, requires setter to avoid creating
objects.

Sent from my iPhone

On 2011. 5. 17., at 오후 2:46, "ChiaHung Lin" <chl501@nuk.edu.tw> wrote:

> Is there any reason that we have to allow the state change of BSPMessage?
> 
> My understanding is that immutable object has some advantages such as thread safety in
the concurrent computation environment. So basically I prefer immutable object to mutable
one. 
> 
> But maybe some scenario that prevent us from constructing immutable BSPMessage?
> 
> -----Original message-----
> From:Edward J. Yoon <edwardyoon@apache.org>
> To:hama-dev <hama-dev@incubator.apache.org>
> Date:Tue, 17 May 2011 14:08:05 +0900
> Subject:Setter of message
> 
> Hi
> 
> Should we add setter to BSPMessage?
> 
> Sent from my iPhone
> 
> 
> --
> ChiaHung Lin
> Department of Information Management
> National University of Kaohsiung
> Taiwan

Mime
View raw message