Interface ConnectionContext


public interface ConnectionContext

The connection context that handles connection interactions with the outer world, e.g. handling an event.

The connection context allows a connection to signal inner changes to its context (the client state machine).

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Signals the connection is closed.
    void
    Signals a generic database event.
    void
    Signals a failure.
  • Method Details

    • handleEvent

      void handleEvent(Object event)
      Signals a generic database event.
      Parameters:
      event - the event.
    • handleClosed

      void handleClosed()
      Signals the connection is closed.
    • handleException

      void handleException(Throwable failure)
      Signals a failure.
      Parameters:
      failure - the failure