Interface IMemoryConnection
- All Superinterfaces:
IConnection
- All Known Implementing Classes:
MemoryConnection
A connection that stores data in memory.
- Since:
- 9.3
- Author:
- m.mahabiersing
-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsKey
(GUID id) Check if this connection has an object for the given id.Retrieve an object from the connection.void
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
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
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
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
Remove an object from the connection.- Parameters:
id
- The id of the object to remove, may not be null.
-