park

abstract suspend fun park(entry: ParkedAggregate): Boolean

Parks entry's aggregate for its subscription. When the aggregate is already parked, the entry with the earlier from version is kept (on a tie, the one already there), its partition, from position and ParkedAggregate.skipOnly with it; an entry replaced this way keeps its retry state, but for a request an operator left for the parking it replaces (ParkedAggregate.request, cleared when entry fails at another time), takes the next revision and is no longer scheduled; a new one takes entry's retry state, at revision 0.

Return

true when the ledger changed: the aggregate was not parked, or is now parked from an earlier version.