write

public synchronized void write(InboxMessage message)

Writes a message to the storage.

Parameters

message

a message to write


public synchronized void write(InboxMessageId id, InboxMessage record)

Writes a record into the storage.

Rewrites it if a record with this ID already exists in the storage.

Parameters

id

the ID for the record

record

the record to store

Throws

if the storage is closed