Interface IMemoryConnection

All Superinterfaces:
IConnection
All Known Implementing Classes:
MemoryConnection

public interface IMemoryConnection extends IConnection
A connection that stores data in memory.
Since:
9.3
Author:
m.mahabiersing
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Check if this connection has an object for the given id.
    get(GUID id)
    Retrieve an object from the connection.
    void
    put(GUID id, Object item)
    Store an object on the connection.
    void
    Remove an object from the connection.

    Methods inherited from interface com.aquima.interactions.foundation.connectivity.IConnection

    getName, getType
  • Method Details

    • containsKey

      boolean containsKey(GUID id)
      Check if this connection has an object for the given id.
      Parameters:
      id - The id, never null
      Returns:
      Returns true if an entry exists, false otherwise.
    • get

      Object get(GUID id)
      Retrieve an object from the connection.
      Parameters:
      id - The id of the object to retrieve.
      Returns:
      The object associated with the id, or null when the connection has no object for the given id.
    • put

      void put(GUID id, Object item)
      Store an object on the connection.
      Parameters:
      id - The id of the object to store.
      item - The object to store, may not be null.
    • remove

      void remove(GUID id)
      Remove an object from the connection.
      Parameters:
      id - The id of the object to remove, may not be null.