server
1.9.0
jvm
server
/
io.spine.server.storage.memory
/
InMemoryCatchUpStorage
In
Memory
Catch
Up
Storage
public
class
InMemoryCatchUpStorage
extends
AbstractStorage
<
I
,
M
,
R
>
implements
CatchUpStorage
An in-memory implementation of
CatchUpStorage
.
Members
Constructors
In
Memory
Catch
Up
Storage
Link copied to clipboard
public
void
InMemoryCatchUpStorage
(
boolean multitenant
)
Functions
index
Link copied to clipboard
public
Iterator
<
CatchUpId
>
index
(
)
Returns an iterator over identifiers of records in the storage.
read
Link copied to clipboard
public
Optional
<
CatchUp
>
read
(
CatchUpReadRequest
request
)
Reads a record from the storage by the specified request.
read
All
Link copied to clipboard
public
Iterable
<
CatchUp
>
readAll
(
)
Returns an
Iterable
over all the stored catch-up processes.
read
By
Type
Link copied to clipboard
public
Iterable
<
CatchUp
>
readByType
(
TypeUrl projectionType
)
Reads all the catch-up processes which update the projection of the specified type.
write
Link copied to clipboard
public
void
write
(
CatchUp message
)
Writes a message to the storage.
public
void
write
(
CatchUpId id
,
CatchUp record
)
Writes a record into the storage.
Inherited functions
check
Not
Closed
Link copied to clipboard
protected
void
checkNotClosed
(
)
protected
void
checkNotClosed
(
String
message
)
Ensures the storage is not closed.
close
Link copied to clipboard
public
void
close
(
)
Closes the storage.
public
abstract
void
close
(
)
is
Closed
Link copied to clipboard
public
boolean
isClosed
(
)
Tests whether the storage is closed.
is
Multitenant
Link copied to clipboard
public
boolean
isMultitenant
(
)
Verifies whether the storage is multitenant.
is
Open
Link copied to clipboard
public
boolean
isOpen
(
)
Tests whether the storage is open.