Class ResizableBatchTransformBlock<I, O>
- Namespace
- CounterpointCollective.Dataflow
- Assembly
- Dataflow.Composable.dll
public sealed class ResizableBatchTransformBlock<I, O> : AbstractEncapsulatedPropagatorBlock<I, O>, IReceivableSourceBlock<O>, IResizablePropagatorBlock<I, O>, IPropagatorBlock<I, O>, ISourceBlock<O>, ITargetBlock<I>, IDataflowBlock
Type Parameters
I
O
- Inheritance
-
AbstractEncapsulatedSourceBlock<O>
AbstractEncapsulatedPropagatorBlock<I, O>
ResizableBatchTransformBlock<I, O>
- Implements
-
- Inherited Members
-
- Extension Methods
-
ParallelDataflowBlockExtensions.Par<TInput, T1, T2, TOutput>(IPropagatorBlock<TInput, T1>, IPropagatorBlock<TInput, T2>, Func<T1, T2, TOutput>, GuaranteedBroadcastBlockOptions)
Constructors
public ResizableBatchTransformBlock(Func<I[], Task<IEnumerable<O>>> transform, int initialBatchSize, ExecutionDataflowBlockOptions? options = null)
Parameters
transform Func<I[], Task<IEnumerable<O>>>
initialBatchSize int
options ExecutionDataflowBlockOptions
Properties
public int BatchSize { get; set; }
Property Value
- int
public int BoundedCapacity { get; set; }
Property Value
- int
public int Count { get; }
Property Value
- int
public int InProgressCount { get; }
Property Value
- int
public int InputCount { get; }
Property Value
- int
public bool IsBottleneckCurrently { get; }
Property Value
- bool
public bool IsFull { get; }
Property Value
- bool
public TimeSpan LongestWait { get; }
Property Value
- TimeSpan
public Func<ResizableBatchTransformBlock<I, O>, IList<I>, IDisposable>? OnBatch { get; set; }
Property Value
- Func<ResizableBatchTransformBlock<I, O>, IList<I>, IDisposable>
public Action<int>? OnBatchSizeChanged { get; set; }
Property Value
- Action<int>
public int OutputCount { get; }
Property Value
- int
protected override ISourceBlock<O> SourceSide { get; }
Property Value
- ISourceBlock<O>
protected override ITargetBlock<I> TargetSide { get; }
Property Value
- ITargetBlock<I>