EventSourcePublisher constructor

EventSourcePublisher({
  1. int cacheCapacity = 0,
  2. bool comparableIds = false,
  3. bool enableLogging = true,
})

Implementation

EventSourcePublisher({
  int cacheCapacity = 0,
  bool comparableIds = false,
  bool enableLogging = true,
}) {
  if (cacheCapacity > 0) {
    _cache = new EventCache(cacheCapacity: cacheCapacity);
  }
  if (enableLogging) {
    logger = new log.Logger("EventSourceServer");
  }
}