Exemple #1
0
        /// <summary>
        ///     Constructor.
        /// </summary>
        /// <param name="size">is the number of events to batch</param>
        /// <param name="lengthBatchViewFactory">for copying this view in a group-by</param>
        /// <param name="agentInstanceViewFactoryContext">context</param>
        public LengthBatchViewRStream(
            AgentInstanceViewFactoryChainContext agentInstanceViewFactoryContext,
            LengthBatchViewFactory lengthBatchViewFactory,
            int size)
        {
            this.lengthBatchViewFactory = lengthBatchViewFactory;
            Size = size;
            agentInstanceContext = agentInstanceViewFactoryContext.AgentInstanceContext;

            if (size <= 0) {
                throw new ArgumentException("Invalid size parameter, size=" + size);
            }
        }
Exemple #2
0
        /// <summary>
        ///     Constructor.
        /// </summary>
        /// <param name="size">is the number of events to batch</param>
        /// <param name="viewUpdatedCollection">is a collection that the view must update when receiving events</param>
        /// <param name="lengthBatchViewFactory">for copying this view in a group-by</param>
        /// <param name="agentInstanceContext">context</param>
        public LengthBatchView(
            AgentInstanceViewFactoryChainContext agentInstanceContext,
            LengthBatchViewFactory lengthBatchViewFactory,
            int size,
            ViewUpdatedCollection viewUpdatedCollection)
        {
            this.agentInstanceContext = agentInstanceContext.AgentInstanceContext;
            this.lengthBatchViewFactory = lengthBatchViewFactory;
            Size = size;
            this.viewUpdatedCollection = viewUpdatedCollection;

            if (size <= 0) {
                throw new ArgumentException("Invalid size parameter, size=" + size);
            }
        }