# Class CSEventService

java.lang.Object
com.io7m.certusine.vanilla.internal.events.CSEventService

All Implemented Interfaces:
  `CSEventServiceType, com.io7m.repetoir.core.RPServiceType, AutoCloseable`

public final class CSEventService extends Object implements CSEventServiceType
The default event service.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `close()`
  `static CSEventServiceType`
  `create(CSConfigurationServiceType configuration, CSTelemetryServiceType telemetry)`
  Create a new event service.
  `String`
  `description()`
  `void`
  `emit(CSEventType event)`
  Emit an event.
  `String`
  `toString()`

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Method Details

  - ### create

    public static CSEventServiceType create(CSConfigurationServiceType configuration, CSTelemetryServiceType telemetry)
    Create a new event service.
    Parameters:
      `configuration` - The configuration service
      `telemetry` - The telemetry
    Returns:
      A new event service

  - ### emit

    public void emit(CSEventType event)
    Description copied from interface: `CSEventServiceType`
    Emit an event.
    Specified by:
      `emit` in interface `CSEventServiceType`
    Parameters:
      `event` - The event

  - ### description

    public String description()
    Specified by:
      `description` in interface `com.io7m.repetoir.core.RPServiceType`

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`

  - ### close

    public void close() throws Exception
    Specified by:
      `close` in interface `AutoCloseable`
    Throws:
      `Exception`