On 07/19, Mark Rivers wrote:
> streamDevice uses asyn for I/O but it does not use asyn for printing
> error messages. That is unfortunate because if it did you would have
> the ability to turn off the messages using asynTrace control. I have
> suggested this to Dirk but it would introduce asyn dependencies into
> parts of streamDevice code that are currently independent of asyn,
> which he is reluctant to do.
Sounds like a good candidate for the Bridge design pattern. Create
an interface for the logging, and provide two implementations: the
StreamDevice built-in implementation and the Asyn implementation. Those
parts of StreamDevice that know nothing about Asyn will continue to know
nothing about Asyn, yet the Asyn implementation could be used.
Lewis
- Replies:
- RE: Time interval for Asyn auto reconnect Mark Rivers
- References:
- Time interval for Asyn auto reconnect Paduan Donadio, Marcio
- RE: Time interval for Asyn auto reconnect Mark Rivers
- Re: Time interval for Asyn auto reconnect Paduan Donadio, Marcio
- Re: Time interval for Asyn auto reconnect Mark Rivers
- Navigate by Date:
- Prev:
Re: Debian packages for debian 9 (stretch) ? Carlos Pascual
- Next:
RE: Time interval for Asyn auto reconnect Mark Rivers
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
<2017>
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: Time interval for Asyn auto reconnect Mark Rivers
- Next:
RE: Time interval for Asyn auto reconnect Mark Rivers
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
<2017>
2018
2019
2020
2021
2022
2023
2024
|