aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Timothee Maret (JIRA)" <>
Subject [jira] [Commented] (ARIES-1880) Use builder instead of many parameters in subscribe
Date Fri, 04 Jan 2019 18:06:00 GMT


Timothee Maret commented on ARIES-1880:

FWIW, using a Builder looks like a good approach to me. The current PR seems to include a
slightly different approach than the builder pattern though. If we use the actual pattern
(all building method return a {{SubscribeRequestBuilder}}, a {{build}} method return the
actual {{SubscribeRequest}}) then we could add some checks in the builder that would allow
to enforce, for instance, that the Seek parameter is set.

> Use builder instead of many parameters in subscribe
> ---------------------------------------------------
>                 Key: ARIES-1880
>                 URL:
>             Project: Aries
>          Issue Type: Improvement
>          Components: Journaled Events
>            Reporter: Christian Schneider
>            Assignee: Christian Schneider
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
> Subscription subscribe(String topic, Position position, Seek seek, Consumer<Received>
> 4 Parameters which can partly be null is not a good idea. [~alien11689] proposed on the
list to use a DTO.

This message was sent by Atlassian JIRA

View raw message