You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Pavel Tupitsyn (JIRA)" <ji...@apache.org> on 2017/10/02 13:44:00 UTC
[jira] [Created] (IGNITE-6541) .NET: Refactor DataStreamer
configuration
Pavel Tupitsyn created IGNITE-6541:
--------------------------------------
Summary: .NET: Refactor DataStreamer configuration
Key: IGNITE-6541
URL: https://issues.apache.org/jira/browse/IGNITE-6541
Project: Ignite
Issue Type: Improvement
Components: platforms
Reporter: Pavel Tupitsyn
Current DataStreamer configuration works like this:
{code}
using (var streamer = ignite.GetDataStreamer<int, int>("myCache"))
{
streamer.AllowOverwrite = true;
streamer.SkipStore = false;
// etc
}
{code}
All configuration {{IDataStreamer}} properties have "Setter must be called before any add/remove operation" comment on them.
This is quite strange and not consistent with other APIs. Change to this:
{code}
var cfg = new DataStreamerConfiguration
{
AllowOverwrite = true,
SkipStore = false,
// etc
};
using (var streamer = ignite.GetDataStreamer<int, int>("myCache", cfg))
{
// stream data
}
{code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)