Commit graph

1184 commits

Author SHA1 Message Date
Christopher Batey
dd13f559b8 Fix entity ref link in migration guide 2019-06-14 08:58:26 +01:00
Christopher Batey
a871176fd6 Use Duration in javadsl.EntityRef.ask (#27098)
Refs #26812
2019-06-14 09:17:19 +02:00
Patrik Nordwall
6660e8504a
Remove Jackson Smile format, #24155 (#27105)
* No clear advantage over CBOR
* One less choice for users
* CBOR seems to have a stronger specification and therefore potential
  for wider adoption
* Performance of CBOR is equals to Smile
* Smile can be slightly more compact
  (I think it does more to reduce repeated field names),
  but that might be better to solve with good compression
2019-06-13 17:40:24 +02:00
Patrik Nordwall
893bd8b74b
Remove ActorContext parameter from javadsl.ReceiveBuilder, #27120 (#27121)
* Remove ActorContext parameter from javadsl.ReceiveBuilder, #27120

* functional style in javadsl
* in Java it's more practical to have an enclosing class to hold
  initialization parameters and ActorContext
* writing behaviors as pure static methods will be unlikely be used in Java
* it's still possible to write behaviors as static methods by passing
  the context around, in same way as all other things
* better to embrace the enclosing class pattern and therefore remove
  the context parameter from the message handlers
* style cleanup of ChatRoom sample
* migration guide
2019-06-13 16:10:40 +02:00
Patrik Nordwall
03588c3036
Merge pull request #27134 from chbatey/missing-typed-api
Remove typed from api may change
2019-06-13 13:01:34 +02:00
Christopher Batey
c9ae6b9d58 Remove typed from api may change 2019-06-13 10:15:57 +01:00
Patrik Nordwall
631ea2faa2 Remove request parameter in Typed Replicator messages, #27115
* Simplifies the API
* Ask can be used instead, with better type safety since
  the request parameter was Any
2019-06-12 11:28:08 +02:00
Patrik Nordwall
5bb83899e7 Remove Behavior.same/empty/etc, #26730 (#27119)
* Removed `Behavior.same`, `Behavior.unhandled`, `Behavior.stopped`, `Behavior.empty`, and `Behavior.ignore` since
  they were redundant with corresponding in Behaviors
* Also moved several of the internal things from Behavior to BehaviorImpl
2019-06-12 09:38:37 +01:00
Patrik Nordwall
6e6b157775
Merge pull request #27092 from akka/wip-26910-prefix-patriknw
Jackson whitelist for deserialization of unbound class, #26910
2019-06-10 12:22:26 +02:00
Renato Cavalcanti
f7ca0abb24 being explicit about how to disable artery 2019-06-08 10:27:29 +02:00
Patrik Nordwall
047d620c07
Merge pull request #27085 from akka/wip-24874-deadlog-patriknw
re-enable dead letter logging after specified duration, #24874
2019-06-07 17:58:32 +02:00
Patrik Nordwall
c62f428d51 Jackson whitelist for deserialization of unbound class, #26910 2019-06-07 17:52:50 +02:00
Patrik Nordwall
41600d3079 use ISO-8601 date/time format in Jackson serializer, #24155
* better for interoperability
* deserialization from both formats are supported
2019-06-07 16:51:44 +02:00
Patrik Nordwall
467d65043e try Jackson compression impact, #24155
* increased the default compress-larger-than to 32 KiB,
  because gzip performance overhead
* support 'off' config value to disable completely
2019-06-07 16:00:02 +02:00
Patrik Nordwall
9a0778435c refactoring, cleanup, and count non-logged, #24874 2019-06-07 15:52:06 +02:00
Patrik Nordwall
23cbd68430 Support separate conf per JacksonSerializer binding, #24155
* Needed in Lagom to be able to have separate object mappers with different
  config for exernal and internal usage.
* Can also be good to be able to have different config for json and cbor
  serializers, or different for remote messages and persisted events.
* Pass in binding name when creating the serializer if it has a matching
  constructor
* Serialization identifiers loaded from config via the binding name instead
  of class name, for JacksonSerializer.
2019-06-07 14:43:36 +02:00
Patrik Nordwall
7c0be70eea
Doc Jackson annotation gotchas, #24155 (#27091)
* Describe annotations for single param constructor, #24155
* Describe annotations for polymorphic types, #24155
2019-06-07 14:41:01 +02:00
Christopher Batey
508aa9970f
Decrease waiting-for-state-timeout to 2s (#27025)
* Decrease waiting-for-state-timeout to 2s

The timeout can be likely to happen for small clusters when the read
majority needs to go to every node

Refs #26710

* Restructure migration guide for 2.6

Separate out changes that require no user action unless the old
behavior is preferred

* Update akka-docs/src/main/paradox/project/migration-guide-2.5.x-2.6.x.md

Co-Authored-By: Arnout Engelen <github@bzzt.net>
2019-06-06 10:22:26 +01:00
Patrik Nordwall
10d32fceb9 scheduleWithFixedDelay vs scheduleAtFixedRate, #26910
* previous `schedule` method is trying to maintain a fixed average frequency
  over time, but that can result in undesired bursts of scheduled tasks after a long
  GC or if the JVM process has been suspended, same with all other periodic
  scheduled message sending via various Timer APIs
* most of the time "fixed delay" is more desirable
* we can't just change because it's too big behavioral change and some might
  depend on previous behavior
* deprecate the old `schedule` and introduce new `scheduleWithFixedDelay`
  and `scheduleAtFixedRate`, when fixing the deprecation warning users should
  make a concious decision of which behavior to use (scheduleWithFixedDelay in
  most cases)

* Streams
* SchedulerSpec
  * test both fixed delay and fixed rate
* TimerSpec
* FSM and PersistentFSM
* mima
* runnable as second parameter list, also in typed.Scheduler
* IllegalStateException vs SchedulerException
* deprecated annotations
* api and reference docs, all places
* migration guide
2019-06-05 11:38:04 +02:00
Patrik Nordwall
5d8f1fd7f0
Merge pull request #27084 from chbatey/coordination-lease-timeout
Note about lease timeout and JVM pauses
2019-06-05 08:18:54 +02:00
Christopher Batey
b777ec6509 Minor jackson doc tweaks 2019-06-04 16:43:54 +01:00
Christopher Batey
6205646c17 Note about lease timeout and JVM pauses 2019-06-04 13:43:15 +01:00
Arnout Engelen
f18f2c6559
Add common/io-layer to the ToC (#27018)
Solves part of https://github.com/akka/akka.github.com/issues/606
2019-06-03 16:54:01 +02:00
Arnout Engelen
362d734444
Merge Source.apply and Source.from docs (#606) 2019-06-03 16:41:44 +02:00
Helena Edelson
e5d9ce8cd3 Removed overly-enthusiastic-about-scala-sample exclamation point in doc (#27055)
* Removed overly-enthusiastic-about-scala-sample exclamation point in doc.

* And update the sample links while we're at it!
2019-06-03 16:36:42 +02:00
Patrik Nordwall
b9fa1e6cfc
Merge pull request #27063 from coreyauger/akka-docs-endpoint-typeo
fix typo
2019-06-03 16:28:16 +02:00
Patrik Nordwall
f051471d2c
Merge pull request #27065 from aafa/patch-1
Minor typo is fixed
2019-06-03 16:24:22 +02:00
Charies Gavin
fa1643f949 Optimize Document Content (#27050) 2019-06-03 09:46:37 +02:00
Alex Afanasev
d3e7a90fb3
typo 2019-06-02 14:26:11 +03:00
Corey Auger
f0212f905a fix typeo 2019-05-31 15:13:56 -07:00
Enno Runne
b64e4c48c7 Update links of moved modules to doc.akka.io [skip ci] 2019-05-31 16:17:02 +02:00
Arnout Engelen
eca459e461 Include fan-out operators in the operator index (#27028) 2019-05-31 12:56:25 +02:00
Christopher Batey
6754bf7f73 Remove JavaTestkit (#27022)
* Remove JavaTestKit

* mima

* Also remove Caching partial function

* Formatting

* Update akka-docs/src/main/paradox/project/migration-guide-2.5.x-2.6.x.md

Co-Authored-By: Arnout Engelen <github@bzzt.net>
2019-05-29 15:45:20 +02:00
Christopher Batey
3888de23ed Remove ApiMayChange from coordination module (#27026)
Note that it will be fully stable in 2.6.0 so no guarantees for milestones before that.

* remove api may change from sharding lease settings
* mima
* Remove settings from module
2019-05-29 15:41:16 +02:00
Christopher Batey
37f42d3220 Remove API may change from akka typed (#27027)
Note that it will become fully stable in 2.6.0 so this doesn't mean that there will be no more API changes.

* Remove from event sourced behavior
* Remove api may change settings from typed modules
* Dont check mima for typed until 2.6
2019-05-29 15:38:14 +02:00
Christopher Batey
96eed177dc
Make netty and aeron dependencies optional (#27017)
* Make netty and aeron dependencies optional
* Include agrona as a mandatory dependency (used in compression tables)
Refs #25169
2019-05-29 09:50:28 +01:00
Christopher Batey
e7672a9802
Remove various features deprecated since 2.5.0 (#27023)
* Remove various features deprecated since 2.5.0
2019-05-29 07:10:40 +01:00
Eric Loots
31f6170c62 Fix typo in expanded SRV query (#26998)
The "serviceName" is not prepended with an underscore when querying
for a DNS SRV record.
2019-05-27 15:32:57 +02:00
Patrik Nordwall
799e3b6f46
Merge pull request #27013 from akka/wip-26971-typed-scheduler-patriknw
Specific minimal scheduler API for typed #26971
2019-05-24 11:23:02 +02:00
Johan Andrén
604523ba18 Specific minimal scheduler API for typed #26971
* migration guide entry
* ManualTime was making assumptions about scheduler
* Add API compile tests for good measure
* named scheduleAtFixedRate instead of schedule
2019-05-24 10:05:53 +02:00
Patrik Nordwall
6122966fca Jackson serializer as replacement for Java serialization, #24155
* Copied from Lagom, with the following differences
  * Jsonable and CompressedJsonable not included
  * pcollection and guava modules not enabled by default
  * added scala and afterburner modules
* JSON, CBOR and Smile options (different serializers)
* JMH benchmark
* jackson version 2.9.9
* test polymorphism
* serializer for ActorRef
* Address serializer
* FiniteDuration serializer, same as java.time.Duration
* use blacklist from Jackson databind against gadgets
* disallow binding to open ended types, such as java.io.Serializable
* Configurable ObjectMapper ser/deser features
* testing date formats with WRITE_DATES_AS_TIMESTAMPS on/off
* ActorSystemSetup for ObjectMapper creation
  * and possibility to lookup created ObjectMapper via ObjectMapperProvider extension
* createObjectMapper without ActorSystem, needed by Lagom test
* add basic docs
* skip Scala 2.13 for akka-serialization-jackson for now, until the Jackson
  Scala module has been released
2019-05-24 09:03:45 +02:00
Nicolas Vollmar
dd6924465b Use function instead of scala partial function for java api #26970 (#26972)
* Use function instead of scala partial function for java api #26970

* Remove deprecated function #26970
2019-05-24 08:13:22 +02:00
Arnout Engelen
814cfa286c Scala 2.13.0 rc2 (#26967) 2019-05-24 08:11:50 +02:00
Patrik Nordwall
24a3bba135
Add reason for deprecating TypedActor, #25516 (#26993)
* Add reason for deprecating TypedActor, #25516

Co-Authored-By: Helena Edelson <helena@users.noreply.github.com>
2019-05-24 08:07:58 +02:00
Johan Andrén
2051b7ce6b Routers.pool now takes a factory (#26987)
Previously took a Behavior which made it impossible to safely use an
AbstractBehavior with mutable state as routees without using Behaviors.setup
2019-05-23 18:26:17 +02:00
Patrik Nordwall
8d1dcea5d2
ClusterReceptionist using own ddata Replicator #26936 (#26994)
* ClusterReceptionist using own ddata Replicator #26936

* otherwise application configuration, such as role may break it
* creating it as a child actor, path will be same on all nodes
* rolling update from 2.5 not supported
* mention in migration guide

* update migration note about receptionist rolling update
2019-05-23 18:21:34 +02:00
Arnout Engelen
3015f197f1
Typed testing docs: imports and scalatest dependency (#26890) 2019-05-23 14:05:06 +02:00
Patrik Nordwall
0458b5624d
Merge pull request #26980 from helena/deprecate-actor-typedactor
Deprecate akka.actor.TypedActor #25516
2019-05-21 21:06:23 +02:00
Patrik Nordwall
80fd6532e0
Merge pull request #26984 from akka/raboof-patch-1
Discovery: clarify what versions migration applies to
2019-05-21 20:47:59 +02:00
Helena Edelson
593f9501b5 * Deprecate akka.actor.TypedActor #25516 2019-05-21 10:38:38 -04:00