@@ -723,6 +723,10 @@ namespace Akka.Streams
723
723
{
724
724
Akka.Streams.Dsl.Source<TOut, Akka.NotUsed> Source { get; }
725
725
}
726
+ public interface ISubscriptionWithCancelException : Reactive.Streams.ISubscription
727
+ {
728
+ void Cancel(System.Exception cause);
729
+ }
726
730
public interface ITransformerLike<in TIn, out TOut>
727
731
{
728
732
bool IsComplete { get; }
@@ -919,6 +923,7 @@ namespace Akka.Streams
919
923
public static readonly Akka.Streams.StreamDetachedException Instance;
920
924
public StreamDetachedException() { }
921
925
public StreamDetachedException(string message) { }
926
+ public StreamDetachedException(string message, System.Exception innerException) { }
922
927
}
923
928
public class StreamLimitReachedException : System.Exception
924
929
{
@@ -997,6 +1002,23 @@ namespace Akka.Streams
997
1002
public StreamTcpException(string message, System.Exception innerException) { }
998
1003
protected StreamTcpException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
999
1004
}
1005
+ public class static SubscriptionWithCancelException
1006
+ {
1007
+ public sealed class NoMoreElementsNeeded : Akka.Streams.SubscriptionWithCancelException.NonFailureCancellation
1008
+ {
1009
+ public static readonly Akka.Streams.SubscriptionWithCancelException.NoMoreElementsNeeded Instance;
1010
+ }
1011
+ [Akka.Annotations.DoNotInheritAttribute()]
1012
+ public abstract class NonFailureCancellation : System.Exception
1013
+ {
1014
+ protected NonFailureCancellation() { }
1015
+ public virtual string StackTrace { get; }
1016
+ }
1017
+ public sealed class StageWasCompleted : Akka.Streams.SubscriptionWithCancelException.NonFailureCancellation
1018
+ {
1019
+ public static readonly Akka.Streams.SubscriptionWithCancelException.StageWasCompleted Instance;
1020
+ }
1021
+ }
1000
1022
public enum SubstreamCancelStrategy
1001
1023
{
1002
1024
Propagate = 0,
@@ -3461,7 +3483,7 @@ namespace Akka.Streams.Implementation
3461
3483
public static void RequireNonNullException(System.Exception exception) { }
3462
3484
public static void RequireNonNullSubscriber<T>(Reactive.Streams.ISubscriber<T> subscriber) { }
3463
3485
public static void RequireNonNullSubscription(Reactive.Streams.ISubscription subscription) { }
3464
- public static void TryCancel(Reactive.Streams.ISubscription subscription) { }
3486
+ public static void TryCancel(Reactive.Streams.ISubscription subscription, System.Exception cause ) { }
3465
3487
public static void TryOnComplete<T>(Reactive.Streams.ISubscriber<T> subscriber) { }
3466
3488
public static void TryOnError<T>(Reactive.Streams.ISubscriber<T> subscriber, System.Exception cause) { }
3467
3489
public static void TryOnNext<T>(Reactive.Streams.ISubscriber<T> subscriber, T element) { }
@@ -3835,7 +3857,7 @@ namespace Akka.Streams.Implementation.Fusing
3835
3857
{
3836
3858
public BatchingActorInputBoundary(int size, int id) { }
3837
3859
public override Akka.Streams.Outlet Out { get; }
3838
- public void Cancel() { }
3860
+ public void Cancel(System.Exception cause ) { }
3839
3861
public void OnComplete() { }
3840
3862
public void OnError(System.Exception reason) { }
3841
3863
public void OnInternalError(System.Exception reason) { }
@@ -3856,17 +3878,19 @@ namespace Akka.Streams.Implementation.Fusing
3856
3878
public void OnNext(T element) { }
3857
3879
public void OnSubscribe(Reactive.Streams.ISubscription subscription) { }
3858
3880
}
3859
- public sealed class BoundarySubscription : Reactive.Streams.ISubscription
3881
+ public sealed class BoundarySubscription : Akka.Streams.ISubscriptionWithCancelException, Reactive.Streams.ISubscription
3860
3882
{
3861
3883
public BoundarySubscription(Akka.Actor.IActorRef parent, Akka.Streams.Implementation.Fusing.GraphInterpreterShell shell, int id) { }
3862
3884
public void Cancel() { }
3885
+ public void Cancel(System.Exception cause) { }
3863
3886
public void Request(long elements) { }
3864
3887
public override string ToString() { }
3865
3888
}
3866
3889
public struct Cancel : Akka.Actor.INoSerializationVerificationNeeded, Akka.Event.IDeadLetterSuppression, Akka.Streams.Implementation.Fusing.ActorGraphInterpreter.IBoundaryEvent
3867
3890
{
3868
3891
public readonly int Id;
3869
- public Cancel(Akka.Streams.Implementation.Fusing.GraphInterpreterShell shell, int id) { }
3892
+ public Cancel(Akka.Streams.Implementation.Fusing.GraphInterpreterShell shell, int id, System.Exception cause) { }
3893
+ public System.Exception Cause { get; }
3870
3894
public Akka.Streams.Implementation.Fusing.GraphInterpreterShell Shell { get; }
3871
3895
}
3872
3896
public struct ExposedPublisher : Akka.Actor.INoSerializationVerificationNeeded, Akka.Event.IDeadLetterSuppression, Akka.Streams.Implementation.Fusing.ActorGraphInterpreter.IBoundaryEvent
@@ -4063,6 +4087,11 @@ namespace Akka.Streams.Implementation.Fusing
4063
4087
public void SetHandler(Akka.Streams.Implementation.Fusing.GraphInterpreter.Connection connection, Akka.Streams.Stage.IInHandler handler) { }
4064
4088
public void SetHandler(Akka.Streams.Implementation.Fusing.GraphInterpreter.Connection connection, Akka.Streams.Stage.IOutHandler handler) { }
4065
4089
public override string ToString() { }
4090
+ public sealed class Cancelled
4091
+ {
4092
+ public readonly System.Exception Cause;
4093
+ public Cancelled(System.Exception cause) { }
4094
+ }
4066
4095
[Akka.Annotations.InternalApiAttribute()]
4067
4096
public sealed class Connection
4068
4097
{
@@ -4627,7 +4656,7 @@ namespace Akka.Streams.Stage
4627
4656
protected AbstractStage() { }
4628
4657
protected virtual bool IsDetached { get; }
4629
4658
public virtual Akka.Streams.Supervision.Directive Decide(System.Exception cause) { }
4630
- public abstract Akka.Streams.Stage.ITerminationDirective OnDownstreamFinish(Akka.Streams.Stage.IContext context);
4659
+ public abstract Akka.Streams.Stage.ITerminationDirective OnDownstreamFinish(Akka.Streams.Stage.IContext context, System.Exception cause );
4631
4660
public abstract Akka.Streams.Stage.IDirective OnPull(Akka.Streams.Stage.IContext context);
4632
4661
public abstract Akka.Streams.Stage.IDirective OnPush(TIn element, Akka.Streams.Stage.IContext context);
4633
4662
public abstract Akka.Streams.Stage.ITerminationDirective OnUpstreamFailure(System.Exception cause, Akka.Streams.Stage.IContext context);
@@ -4644,8 +4673,8 @@ namespace Akka.Streams.Stage
4644
4673
{
4645
4674
protected TContext Context;
4646
4675
protected AbstractStage() { }
4647
- public virtual Akka.Streams.Stage.ITerminationDirective OnDownstreamFinish(Akka.Streams.Stage.IContext context) { }
4648
- public virtual Akka.Streams.Stage.ITerminationDirective OnDownstreamFinish(TContext context) { }
4676
+ public virtual Akka.Streams.Stage.ITerminationDirective OnDownstreamFinish(Akka.Streams.Stage.IContext context, System.Exception cause ) { }
4677
+ public virtual Akka.Streams.Stage.ITerminationDirective OnDownstreamFinish(TContext context, System.Exception cause ) { }
4649
4678
public abstract TPullDirective OnPull(TContext context);
4650
4679
public override Akka.Streams.Stage.IDirective OnPull(Akka.Streams.Stage.IContext context) { }
4651
4680
public abstract TPushDirective OnPush(TIn element, TContext context);
@@ -4666,7 +4695,7 @@ namespace Akka.Streams.Stage
4666
4695
public class ConditionalTerminateOutput : Akka.Streams.Stage.OutHandler
4667
4696
{
4668
4697
public ConditionalTerminateOutput(System.Func<bool> predicate) { }
4669
- public override void OnDownstreamFinish() { }
4698
+ public override void OnDownstreamFinish(System.Exception cause ) { }
4670
4699
public override void OnPull() { }
4671
4700
}
4672
4701
[System.ObsoleteAttribute("Please use GraphStage instead. [1.1.0]")]
@@ -4713,7 +4742,9 @@ namespace Akka.Streams.Stage
4713
4742
protected void AbortReading<T>(Akka.Streams.Inlet<T> inlet) { }
4714
4743
protected virtual void AfterPostStop() { }
4715
4744
protected virtual void BeforePreStart() { }
4745
+ protected void Cancel<T>(Akka.Streams.Inlet<T> inlet, System.Exception cause) { }
4716
4746
protected void Cancel<T>(Akka.Streams.Inlet<T> inlet) { }
4747
+ public void CancelStage(System.Exception cause) { }
4717
4748
protected void Complete<T>(Akka.Streams.Outlet<T> outlet) { }
4718
4749
public void CompleteStage() { }
4719
4750
public static Akka.Streams.Stage.InHandler ConditionalTerminateInput(System.Func<bool> predicate) { }
@@ -4735,6 +4766,8 @@ namespace Akka.Streams.Stage
4735
4766
protected Akka.Streams.Stage.StageActor GetStageActor(Akka.Streams.Stage.StageActorRef.Receive receive) { }
4736
4767
protected T Grab<T>(Akka.Streams.Inlet<T> inlet) { }
4737
4768
protected bool HasBeenPulled<T>(Akka.Streams.Inlet<T> inlet) { }
4769
+ [Akka.Annotations.InternalApiAttribute()]
4770
+ public void InternalOnDownstreamFinish(System.Exception cause) { }
4738
4771
protected bool IsAvailable<T>(Akka.Streams.Inlet<T> inlet) { }
4739
4772
protected bool IsAvailable<T>(Akka.Streams.Outlet<T> outlet) { }
4740
4773
protected bool IsClosed<T>(Akka.Streams.Inlet<T> inlet) { }
@@ -4750,7 +4783,7 @@ namespace Akka.Streams.Stage
4750
4783
protected void SetHandler<T>(Akka.Streams.Inlet<T> inlet, Akka.Streams.Stage.IInHandler handler) { }
4751
4784
protected void SetHandler<T>(Akka.Streams.Inlet<T> inlet, System.Action onPush, System.Action onUpstreamFinish = null, System.Action<System.Exception> onUpstreamFailure = null) { }
4752
4785
protected void SetHandler<T>(Akka.Streams.Outlet<T> outlet, Akka.Streams.Stage.IOutHandler handler) { }
4753
- protected void SetHandler<T>(Akka.Streams.Outlet<T> outlet, System.Action onPull, System.Action onDownstreamFinish = null) { }
4786
+ protected void SetHandler<T>(Akka.Streams.Outlet<T> outlet, System.Action onPull, System.Action<System.Exception> onDownstreamFinish = null) { }
4754
4787
[System.ObsoleteAttribute("Use method `SetHandlers` instead. Will be removed in v1.5")]
4755
4788
protected void SetHandler<TIn, TOut>(Akka.Streams.Inlet<TIn> inlet, Akka.Streams.Outlet<TOut> outlet, Akka.Streams.Stage.InAndOutGraphStageLogic handler) { }
4756
4789
protected void SetHandlers<TIn, TOut>(Akka.Streams.Inlet<TIn> inlet, Akka.Streams.Outlet<TOut> outlet, Akka.Streams.Stage.InAndOutGraphStageLogic handler) { }
@@ -4765,8 +4798,8 @@ namespace Akka.Streams.Stage
4765
4798
}
4766
4799
protected sealed class LambdaOutHandler : Akka.Streams.Stage.OutHandler
4767
4800
{
4768
- public LambdaOutHandler(System.Action onPull, System.Action onDownstreamFinish = null) { }
4769
- public override void OnDownstreamFinish() { }
4801
+ public LambdaOutHandler(System.Action onPull, System.Action<System.Exception> onDownstreamFinish = null) { }
4802
+ public override void OnDownstreamFinish(System.Exception cause ) { }
4770
4803
public override void OnPull() { }
4771
4804
}
4772
4805
[Akka.Annotations.InternalApiAttribute()]
@@ -4778,6 +4811,7 @@ namespace Akka.Streams.Stage
4778
4811
public bool IsClosed { get; }
4779
4812
public Akka.Streams.IGraph<Akka.Streams.SinkShape<T>, Akka.NotUsed> Sink { get; }
4780
4813
public void Cancel() { }
4814
+ public void Cancel(System.Exception cause) { }
4781
4815
public T Grab() { }
4782
4816
public void Pull() { }
4783
4817
public void SetHandler(Akka.Streams.Stage.IInHandler handler) { }
@@ -4838,6 +4872,7 @@ namespace Akka.Streams.Stage
4838
4872
Akka.Streams.Stage.ITerminationDirective AbsorbTermination();
4839
4873
Akka.Streams.Stage.FreeDirective Fail(System.Exception cause);
4840
4874
Akka.Streams.Stage.FreeDirective Finish();
4875
+ Akka.Streams.Stage.FreeDirective Finish(System.Exception cause);
4841
4876
Akka.Streams.Stage.IUpstreamDirective Pull();
4842
4877
Akka.Streams.Stage.IDownstreamDirective Push(object element);
4843
4878
Akka.Streams.Stage.IDownstreamDirective PushAndFinish(object element);
@@ -4888,7 +4923,7 @@ namespace Akka.Streams.Stage
4888
4923
}
4889
4924
public interface IOutHandler
4890
4925
{
4891
- void OnDownstreamFinish();
4926
+ void OnDownstreamFinish(System.Exception cause );
4892
4927
void OnPull();
4893
4928
}
4894
4929
public interface IStageLogging
@@ -4909,14 +4944,14 @@ namespace Akka.Streams.Stage
4909
4944
public sealed class IgnoreTerminateOutput : Akka.Streams.Stage.OutHandler
4910
4945
{
4911
4946
public static readonly Akka.Streams.Stage.IgnoreTerminateOutput Instance;
4912
- public override void OnDownstreamFinish() { }
4947
+ public override void OnDownstreamFinish(System.Exception cause ) { }
4913
4948
public override void OnPull() { }
4914
4949
}
4915
4950
public abstract class InAndOutGraphStageLogic : Akka.Streams.Stage.GraphStageLogic, Akka.Streams.Stage.IInHandler, Akka.Streams.Stage.IOutHandler
4916
4951
{
4917
4952
protected InAndOutGraphStageLogic(int inCount, int outCount) { }
4918
4953
protected InAndOutGraphStageLogic(Akka.Streams.Shape shape) { }
4919
- public virtual void OnDownstreamFinish() { }
4954
+ public virtual void OnDownstreamFinish(System.Exception cause ) { }
4920
4955
public abstract void OnPull();
4921
4956
public abstract void OnPush();
4922
4957
public virtual void OnUpstreamFailure(System.Exception e) { }
@@ -4925,7 +4960,7 @@ namespace Akka.Streams.Stage
4925
4960
public abstract class InAndOutHandler : Akka.Streams.Stage.IInHandler, Akka.Streams.Stage.IOutHandler
4926
4961
{
4927
4962
protected InAndOutHandler() { }
4928
- public virtual void OnDownstreamFinish() { }
4963
+ public virtual void OnDownstreamFinish(System.Exception cause ) { }
4929
4964
public abstract void OnPull();
4930
4965
public abstract void OnPush();
4931
4966
public virtual void OnUpstreamFailure(System.Exception e) { }
@@ -4956,13 +4991,13 @@ namespace Akka.Streams.Stage
4956
4991
{
4957
4992
protected OutGraphStageLogic(int inCount, int outCount) { }
4958
4993
protected OutGraphStageLogic(Akka.Streams.Shape shape) { }
4959
- public virtual void OnDownstreamFinish() { }
4994
+ public virtual void OnDownstreamFinish(System.Exception cause ) { }
4960
4995
public abstract void OnPull();
4961
4996
}
4962
4997
public abstract class OutHandler : Akka.Streams.Stage.IOutHandler
4963
4998
{
4964
4999
protected OutHandler() { }
4965
- public virtual void OnDownstreamFinish() { }
5000
+ public virtual void OnDownstreamFinish(System.Exception cause ) { }
4966
5001
public abstract void OnPull();
4967
5002
}
4968
5003
public class PushPullGraphStageWithMaterializedValue<TIn, TOut, TMat> : Akka.Streams.Stage.GraphStageWithMaterializedValue<Akka.Streams.FlowShape<TIn, TOut>, TMat>
0 commit comments