/// <summary> /// Creates a buffered Channel with the specified buffer and size. /// </summary> /// <remarks> /// If the specified JibuBuffer is Infinite, then the size argument will be ignored. /// </remarks> /// <param name="bufferType">The type of buffer.</param> /// <param name="size">The size of the buffer. The argument is ignored if the buffer type is InfiniteBuffer</param> /// <returns>A buffered Channel instance.</returns> public Channel(JibuBuffer bufferType, int size) { internalChannel = new BufferedChannel <T>(bufferType, size); }
/// <summary> /// Creates a buffered Channel with the specified buffer. /// </summary> /// <remarks> /// If the specified JibuBuffer is different from Infinite, then a default size of 10 is used. /// </remarks> /// <param name="bufferType">The type of buffer.</param> /// <returns>A buffered Channel instance.</returns> public Channel(JibuBuffer bufferType) { internalChannel = new BufferedChannel <T>(bufferType, 10); }