code: public void addWriteTask(MonitoringEvent event, DatagramChannel channel, int maxSize) {
          if (!initialized) {
              throw new IllegalStateException("Dispatcher is not initialized!");
          }
          tasks.add(new WriteTask(event, channel, maxSize));
      }
docs: Add a task to asynchronously write {@code event} to the {@code channel}
  if its serialized form does not exceed {@code maxSize}.
  
  @param event The event to write.
  @param channel The channel to write to.
  @param maxSize The maximum allowed size for the serialized {@code event}.
  
  @throws IllegalStateException If this dispatcher has not yet been
  initialized via {@link #init()}.