fix compilation errors

This commit is contained in:
Patrik Nordwall 2020-09-03 12:48:53 +02:00
parent 4629cd44e4
commit bb985b82c6
3 changed files with 6 additions and 4 deletions

View file

@ -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 = {

View file

@ -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");

View file

@ -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) => {