pekko/akka-docs/rst/java/http/routing-dsl/directives/basic-directives/extractActorSystem.rst
2016-08-16 14:59:05 +02:00

19 lines
458 B
ReStructuredText

.. _-extractActorSystem-java-:
extractActorSystem
==================
Description
-----------
Extracts the ``ActorSystem`` from the ``RequestContext``, which can be useful when the external API
in your route needs one.
.. warning::
This is only supported when the available Materializer is an ActorMaterializer.
Example
-------
.. includecode:: ../../../../code/docs/http/javadsl/server/directives/BasicDirectivesExamplesTest.java#extractActorSystem