Roland Kuhn
72080a7cc2
Merge pull request #15790 from akka/wip-15755-15756-source-sink-patriknw
...
=str #15755 #15756 source and sink
2014-09-04 14:07:03 +02:00
Roland Kuhn
61b77ea50c
=str #15755 #15756 rework Source/Sink materialization
...
The philosophy is that the FlowMaterializer has complete control over
how it interprets the AST, no restrictions. Therefore it only involves
one specified method: materialize() which returns a MaterializedFlow.
Within the ActorBasedFlowMaterializer we materialize Sources and Sinks
that implement the specified SimpleSource/SourceWithKey interfaces (same
for Sinks), others are not supported. These traits are extensible and
they require that an ActorBasedFlowMaterializer is passed into the
factory methods. Other materializers can of course interpret these AST
nodes differently, or they can use the actor-based facilities by
creating a suitable materializer for them to use.
This means that everything is fully extensible, but the infrastructure
we provide concretely for ourselves is built exactly for that and
nothing more. Overgeneralization would just lead nowhere.
Also made FutureSink isActive and implement it using a light-weight
Subscriber instead of a Flow/Transformer.
2014-09-04 14:05:51 +02:00
Patrik Nordwall
b7a509ec3e
=str #15755 #15756 Some cleanup
2014-09-03 16:02:10 +02:00
Patrik Nordwall
67228108e0
=str #15756 Implement Sinks
...
* Implement FutureSink
* also, make PublisherSink an object
* Implement OnCompleteSink
* Implement ForeachSink
* Implement SubscriberSink
2014-09-03 16:01:25 +02:00
Patrik Nordwall
4bee84f149
=str #15755 implement Sources
...
* Implement IteratorSource
* and add tests for IterableSource and IteratorSource
* Implement ThunkSource
* Implement FutureSource
* Implement TickSource
2014-09-03 16:00:16 +02:00
Patrik Nordwall
c21a72a5a8
=str #15755 mandate materializer for IterableSource
...
* Source attach to top flow subscriber
2014-09-03 15:59:37 +02:00
Roland Kuhn
5ba32ccc50
=str #15755 #15756 correct variance annotations
...
- make HasNoX into pure marker traits
- make materialization type-safe
- remove casting when using EmptyPublisher
2014-09-03 15:59:22 +02:00
Patrik Nordwall
0046bebdfe
=str #15755 #15756 First stab at input/output factories
...
* New naming based on Source and Sink
2014-09-02 12:58:56 +02:00
Konrad Malawski
0df3f572e1
Merge pull request #15789 from ktoso/port-prettydurationspec-ktoso
...
=tes #15777 simple, but stable fix to , or . sensitivity in spec (for Validation)
2014-09-01 20:04:18 +02:00
Konrad Malawski
cb17b9ab49
Merge pull request #15759 from ktoso/wip-reduce-weight-flow-materializer-ktoso
...
!str #15121 MaterializerSettings now uses a config object
2014-09-01 20:00:13 +02:00
Konrad 'ktoso' Malawski
cc4fd5ca2c
!str #15121 MaterializerSettings now uses a config object
...
Resolves #15121
2014-09-01 19:21:57 +02:00
Patrik Nordwall
a25d0fcde9
Merge pull request #15765 from akka/wip-15744-newdsl-transform-patriknw
...
=str #15744 Hook-up transform to the AST nodes
2014-09-01 12:12:50 +02:00
Patrik Nordwall
b0051c492e
=str #15744 Hook-up transform to the AST nodes
...
* Removed unused parts of the new dsl, such as FlowGraph
* Materialization of transform, still with old way of terminal operators,
input/output factories will come next
* New ActorBasedFlowMaterializer in impl2
2014-09-01 12:10:56 +02:00
Patrik Nordwall
e0f7f9a058
Merge pull request #15760 from akka/wip-15026-jason-comments-patriknw
...
!str #15026 Fix issues pointed out by Jason
2014-08-29 09:40:10 +02:00
Patrik Nordwall
2ef9962eb0
!str #15026 change thunk publisher api to () => Option[T]
2014-08-29 08:32:57 +02:00
Patrik Nordwall
9dd281428d
=str #15026 add some scaladoc backticks
2014-08-29 08:15:52 +02:00
Patrik Nordwall
85b85b4d75
=str #15026 take drop negative
2014-08-29 08:15:44 +02:00
Patrik Nordwall
37f94c9d8d
=str #15746 Rename flow classes
2014-08-26 18:11:11 +02:00
Patrik Nordwall
5384c4f098
=str Move new dsl to scaladsl2 package
2014-08-26 17:59:12 +02:00
Konrad Malawski
55e48918fd
Merge pull request #15725 from ktoso/wip-transformerFactory-ktoso
...
!str #15271 make transform() take a factory instead of Transformer
2014-08-26 16:15:36 +02:00
Martynas Mickevičius
fbbe5cd451
Merge pull request #15698 from 2m/wip-typesafe-dsl
...
WIP Steams typesafe DSL
2014-08-26 16:10:00 +02:00
Konrad 'ktoso' Malawski
5b1c05f3fe
!str #15271 make transform() take a factory instead of Transformer
...
+ Makes reusing flows safe
+ Adds timerTransform for ops which need TimerTransformer
+ Adds TransformerLike in order to keep transform/timerTransform
typesafe in respect to the passed in type og Transformer
Resolves #15271
2014-08-22 14:21:02 +02:00
Martynas Mickevicius
3c38706bb7
!str #15672 add a way to retrieve Publsiher or Subscriber from Output/Input
...
* also remove ClosedFlow.as(...)
2014-08-22 14:19:41 +03:00
Björn Antonsson
24254c6b48
Merge pull request #15721 from akka/wip-15050-cleanup-ReceiveTimeout-patriknw
...
!str #15050 Remove unused ReceiveTimeout
2014-08-22 12:16:49 +02:00
Björn Antonsson
630169fa2d
Merge pull request #15720 from akka/wip-15705-stream-dependency-akka-2.3.5-patriknw
...
!str #15705 Update to Akka 2.3.5, and new akka-persistent api
2014-08-22 12:16:26 +02:00
Patrik Nordwall
3cb46a57c3
Merge pull request #15719 from akka/wip-15289-java-api-patriknw
...
!str #15289 Java API for ActorPublisher and ActorSubscriber
2014-08-22 11:47:00 +02:00
Patrik Nordwall
b6a915a68c
!str #15289 Java API for ActorPublisher and ActorSubscriber
...
* had to change api because of trait+object not useable from java
* ActorSubscriber.RequestStrategy and its implementations moved to
top level
* messages moved to ActorSubscriberMessage and ActorPublisherMessage
object
2014-08-22 11:46:36 +02:00
Martynas Mickevicius
59e9f71629
!str #15672 add HTTP Pipeline with the new DSL
...
* implement graph operations as case class junctions
* add materialization method to ClosedFlow
2014-08-22 12:17:33 +03:00
Martynas Mickevicius
6d165d28f9
!str #15672 added all combinators from current Flow API
...
* combinator tests
2014-08-22 12:17:33 +03:00
Martynas Mickevicius
7b232600d8
!str #15672 shallow shim of the new Streams DSL
...
* mostly Flow API
* initial Graph API
* positive and negative compilation tests
2014-08-22 12:17:33 +03:00
Björn Antonsson
3ca589ea1b
Merge pull request #15709 from spray/w/15670-add-BodyPartExtractors
...
=htc #15670 add convenience BodyPart extractors
2014-08-22 11:00:18 +02:00
Patrik Nordwall
28bb2174ee
!str #15050 Remove unused ReceiveTimeout
2014-08-22 10:04:21 +02:00
Patrik Nordwall
5c467750ec
!str #15705 Update to Akka 2.3.5, and new akka-persistent api
...
* 2.3.5 dependency
* PersistentPublisher is using PersistentView, and is producing the
raw events instead of the Persistent wrappers
2014-08-22 09:52:32 +02:00
Björn Antonsson
8b359b90d8
Merge pull request #15712 from spray/w/15711-fix-bind-error-message
...
=htc #15711 fix Http.Bind failure warning message
2014-08-22 09:34:07 +02:00
Patrik Nordwall
587af91ff9
Merge pull request #15706 from akka/wip-15551-implicit-materializer-patriknw
...
!str #15551 Switch to implicit passing of FlowMaterializer
2014-08-21 14:34:38 +02:00
Patrik Nordwall
1bb5d37780
!str #15551 Switch to implicit passing of FlowMaterializer
...
* implicit param
* change tests to use implicit materializer
* add ActorFlow trait that provides an implicit materializer inside an actor
in the right way, i.e. encourage usage of that instead of
implicit def mat(implicit arf: ActorRef): FlowMaterializer
* make http compile, but those who know the api better will have to adjust
to take full advantage of the implicit materializer
2014-08-21 13:40:43 +02:00
Patrik Nordwall
fa243e656b
Merge pull request #15701 from akka/wip-15564-stream-supervisor-patriknw
...
!str #15564 Add stream supervisor
2014-08-21 13:31:25 +02:00
Patrik Nordwall
e0bc669bc5
!str #15564 Add stream supervisor
...
* this is the first step, to enable safe FlowMaterializer that can be shared
* had to remove Log because of missing context (we need another solution for log)
* naming of the actors have changed, should be revisited
2014-08-21 13:30:37 +02:00
Patrik Nordwall
35f455d26d
Merge pull request #15557 from 13h3r/wip-initial-delay-for-tick-producer-13h3r
...
Initial delay support for TickProducer
2014-08-21 13:14:05 +02:00
Johannes Rudolph
7075564281
=htc #15711 fix Http.Bind failure warning message
2014-08-21 13:01:14 +02:00
Patrik Nordwall
d2e94e6207
Merge pull request #15703 from akka/wip-15608-exposed-publisher-race-patriknw
...
=str #15608 Make sure ExposedPublisher is first
2014-08-21 12:31:13 +02:00
Patrik Nordwall
4be757e492
=str #15608 Make sure ExposedPublisher is first
2014-08-21 12:30:16 +02:00
Johannes Rudolph
8c85cc41d3
=htc #15670 add convenience BodyPart extractors
2014-08-21 12:03:19 +02:00
Alexey Romanchuk
edf59b1cd4
+str #15558 Initial delay support for TickProducer
2014-08-21 12:35:46 +07:00
Patrik Nordwall
fedde06bec
Merge pull request #15643 from akka/wip-15408-uncheckedVariance-patriknw
...
+str #15408 Replace uncheckedVariance annotations in Flow/Duct
2014-08-20 09:59:46 +02:00
Patrik Nordwall
2c7fd89479
+str #15408 Replace uncheckedVariance annotations in Flow/Duct
2014-08-20 08:39:17 +02:00
Patrik Nordwall
bf3551b554
Merge pull request #15673 from akka/wip-15076-foreach-patriknw
...
!str #15076 Make foreach a terminal operation, returning Future[Unit]
2014-08-20 08:08:39 +02:00
Patrik Nordwall
b6377a8baf
Merge pull request #15680 from akka/wip-15479-ActorPublisher-request-param-patriknw
...
!str #15479 "Rename ActorPublisher.Request parameter
2014-08-20 08:07:33 +02:00
Patrik Nordwall
0f2f5b3f89
Merge pull request #15562 from akka/wip–rename-tee-to-broadcast-√
...
= str - Renames Flow and Duct 'tee' operation to 'broadcast'
2014-08-20 07:48:57 +02:00
Roland Kuhn
fd96862913
Merge pull request #15580 from spray/w/15560-fix-entity-stream-termination
...
=htc #15560 close entity data stream eagerly + more tests + fix for #15686
2014-08-19 13:01:48 +02:00