Package com.io7m.idstore.server.internal

# Class IdServerEventBusService

java.lang.Object
com.io7m.idstore.server.internal.IdServerEventBusService

All Implemented Interfaces:
  `IdServiceType`, `AutoCloseable`

public final class IdServerEventBusService extends Object implements IdServiceType, AutoCloseable
A service exposing the event bus.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `IdServerEventBusService(SubmissionPublisher<IdServerEventType> inSubject)`
  A service exposing the event bus.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `close()`
  `String`
  `description()`
  `void`
  `publish(IdServerEventType event)`
  Publish an event.
  `String`
  `toString()`

  ### Methods inherited from class java.lang.Object

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

- ## Constructor Details

  - ### IdServerEventBusService

    public IdServerEventBusService(SubmissionPublisher<IdServerEventType> inSubject)
    A service exposing the event bus.
    Parameters:
      `inSubject` - An event subject

- ## Method Details

  - ### description

    public String description()
    Specified by:
      `description` in interface `IdServiceType`
    Returns:
      The service description

  - ### publish

    public void publish(IdServerEventType event)
    Publish an event.
    Parameters:
      `event` - The event

  - ### close

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

  - ### toString

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