More Java getters for akka.actor.AbstractActor.ActorContext #26161
This commit is contained in:
parent
56b2900c12
commit
cc19367588
16 changed files with 95 additions and 38 deletions
|
|
@ -54,9 +54,9 @@ class MyEventsByTagJavaPublisher extends AbstractActorPublisher<EventEnvelope> {
|
|||
final Scheduler scheduler = getContext().getSystem().scheduler();
|
||||
this.continueTask = scheduler
|
||||
.schedule(refreshInterval, refreshInterval, getSelf(), CONTINUE,
|
||||
getContext().dispatcher(), getSelf());
|
||||
getContext().getDispatcher(), getSelf());
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Receive createReceive() {
|
||||
return receiveBuilder()
|
||||
|
|
@ -70,7 +70,7 @@ class MyEventsByTagJavaPublisher extends AbstractActorPublisher<EventEnvelope> {
|
|||
.build();
|
||||
}
|
||||
|
||||
public static Props props(Connection conn, String tag, Long offset,
|
||||
public static Props props(Connection conn, String tag, Long offset,
|
||||
Duration refreshInterval) {
|
||||
return Props.create(MyEventsByTagJavaPublisher.class, () ->
|
||||
new MyEventsByTagJavaPublisher(conn, tag, offset, refreshInterval));
|
||||
|
|
@ -105,7 +105,7 @@ class MyEventsByTagJavaPublisher extends AbstractActorPublisher<EventEnvelope> {
|
|||
final Long id = in.first();
|
||||
final byte[] bytes = in.second();
|
||||
|
||||
final PersistentRepr p =
|
||||
final PersistentRepr p =
|
||||
serialization.deserialize(bytes, PersistentRepr.class).get();
|
||||
|
||||
return new EventEnvelope(Offset.sequence(id), p.persistenceId(), p.sequenceNr(), p.payload());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue