internal void EnableGroupCaching(ProcessCachedGroupNotification callBack, int objectCount) { if (callBack != null) { this.groupQueue = new OutputGroupQueue(callBack, objectCount); } }
/// <summary> /// if needed, add a back end autosize (grouping) cache. /// </summary> /// <param name="callBack">Notification callback to be called when the desired number of objects is reached.</param> /// <param name="objectCount">Max number of objects to be cached.</param> internal void EnableGroupCaching(ProcessCachedGroupNotification callBack, int objectCount) { if (callBack != null) { _groupQueue = new OutputGroupQueue(callBack, objectCount); } }
/// <summary> /// if needed, add a back end autosize (grouping) cache. /// </summary> /// <param name="callBack">Notification callback to be called when the desired number of objects is reached.</param> /// <param name="groupingDuration">Max amount of time to cache of objects.</param> internal void EnableGroupCaching(ProcessCachedGroupNotification callBack, TimeSpan groupingDuration) { if (callBack != null) { _groupQueue = new OutputGroupQueue(callBack, groupingDuration); } }
/// <summary> /// if needed, add a back end autosize (grouping) cache /// </summary> /// <param name="callBack">notification callback to be called when the desired number of objects is reached</param> /// <param name="groupingDuration">max amount of time to cache of objects</param> internal void EnableGroupCaching(ProcessCachedGroupNotification callBack, TimeSpan groupingDuration) { if (callBack != null) _groupQueue = new OutputGroupQueue(callBack, groupingDuration); }