-
Key: DDSJAVA11-12
-
Legacy Issue Number: 18430
-
Status: open
-
Source: ZettaScale Technology ( Mr. Julien Enoch)
-
Summary:
The StatusCondition should be immutable and follow the same pattern than QoS policies:
public interface StatusCondition<ENTITY extends Entity<?, ?>>
{ /* statuses accessor */ public Set<Class<? extends Status>> getEnabledStatuses(); /* parent accessor */ public ENTITY getParent(); /* Copy this StatusCondition and override the value of the statuses */ public StatusCondition<ENTITY> withEnabledStatuses(Class<? extends Status>... statuses); }
extends ConditionThis allow simpler code such as following:
waitset.attachCondition(
reader.getStatusCondition().withEnabledStatuses(DataAvailableStatus.class)); -
Reported: DDS-Java 1.0 — Wed, 6 Feb 2013 05:00 GMT
-
Updated: Fri, 6 Mar 2015 20:57 GMT
DDSJAVA11 — StatusCondition should be immutable and have fluent API
- Key: DDSJAVA11-12
- OMG Task Force: DDS-PSM-Java v1.1 RTF