[infinispan-dev] Read flags from command or context?

Sanne Grinovero sanne at infinispan.org
Tue Jan 3 10:58:48 EST 2012


On 3 January 2012 16:40, Mircea Markus <mircea.markus at jboss.com> wrote:
>
> On 3 Jan 2012, at 17:10, Sanne Grinovero wrote:
>
>> Hi Galder,
>> I agree with you, the command looks like a better place to place the
>> Flags.
> +1. The InvocationContext is something local, so if we need remote propagation the flags should be associated with the command.
>> The only mismatch is with the origin where flags are enabled,
>> but I consider this as a convenience rather than a source of
>> surprising mismatches as I don't see how this API could lead to
>> unexpected results.
>>
>> So the idea is in the future to avoid checking for flags in the
>> context but rather look in the command directly? So that we can avoid
>> copying them in the invocation context.
> can't we just drop the flags from the invocation context entirely?

+1 same we're suggesting as well ;)


More information about the infinispan-dev mailing list