fix compilation errors
This commit is contained in:
parent
4629cd44e4
commit
bb985b82c6
3 changed files with 6 additions and 4 deletions
|
|
@ -1061,7 +1061,7 @@ private[akka] class Shard(
|
|||
* of active entities.
|
||||
*/
|
||||
@InternalStableApi
|
||||
def entityCreated(@unused id: EntityId): Int = entities.nrActiveEntities
|
||||
def entityCreated(@unused id: EntityId): Int = entities.nrActiveEntities()
|
||||
|
||||
// ===== buffering while busy saving a start or stop when remembering entities =====
|
||||
def appendToMessageBuffer(id: EntityId, msg: Any, snd: ActorRef): Unit = {
|
||||
|
|
|
|||
|
|
@ -90,7 +90,9 @@ public class ReplicatedAuctionExampleTest extends JUnitSuite {
|
|||
}
|
||||
|
||||
// #setup
|
||||
class AuctionEntity extends ReplicatedEventSourcedBehavior<Command, Event, AuctionState> {
|
||||
class AuctionEntity
|
||||
extends ReplicatedEventSourcedBehavior<
|
||||
AuctionEntity.Command, AuctionEntity.Event, AuctionEntity.AuctionState> {
|
||||
|
||||
public static ReplicaId R1 = new ReplicaId("R1");
|
||||
public static ReplicaId R2 = new ReplicaId("R2");
|
||||
|
|
|
|||
|
|
@ -44,8 +44,8 @@ object CounterSpec {
|
|||
case PlainCounter.Decrement =>
|
||||
Effect.persist(Counter.Updated(-1))
|
||||
case Get(replyTo) =>
|
||||
context.log.info("Get request. {} {}", state.value, state.value.longValue())
|
||||
replyTo ! state.value.longValue()
|
||||
context.log.info("Get request. {} {}", state.value, state.value.longValue)
|
||||
replyTo ! state.value.longValue
|
||||
Effect.none
|
||||
},
|
||||
(counter, event) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue