You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Akka.IO.Tcp: cleaning up TBDs and API junk (#7621)
* Akka.IO.Tcp: cleaning up `TBD`s and API junk
* fixed compilation error
* made `Tcp.For` `internal`
* `sealed` a ton of `Tcp` classes that can't be inherited
* resolved PR feedback
public class Tcp : Akka.Actor.ExtensionIdProvider<Akka.IO.TcpExt>
3980
+
public sealed class Tcp : Akka.Actor.ExtensionIdProvider<Akka.IO.TcpExt>
3981
3981
{
3982
3982
public static readonly Akka.Actor.SupervisorStrategy ConnectionSupervisorStrategy;
3983
-
public static readonly Akka.IO.Tcp Instance;
3984
3983
public Tcp() { }
3985
3984
public override Akka.IO.TcpExt CreateExtension(Akka.Actor.ExtendedActorSystem system) { }
3986
3985
public static Akka.Actor.IActorRef Manager(Akka.Actor.ActorSystem system) { }
@@ -3989,7 +3988,7 @@ namespace Akka.IO
3989
3988
public static readonly Akka.IO.Tcp.Abort Instance;
3990
3989
public override Akka.IO.Tcp.ConnectionClosed Event { get; }
3991
3990
}
3992
-
public class Aborted : Akka.IO.Tcp.ConnectionClosed
3991
+
public sealed class Aborted : Akka.IO.Tcp.ConnectionClosed
3993
3992
{
3994
3993
public static readonly Akka.IO.Tcp.Aborted Instance;
3995
3994
public override bool IsAborted { get; }
@@ -4004,13 +4003,13 @@ namespace Akka.IO
4004
4003
public bool PullMode { get; }
4005
4004
public override string ToString() { }
4006
4005
}
4007
-
public class Bound : Akka.IO.Tcp.Event
4006
+
public sealed class Bound : Akka.IO.Tcp.Event
4008
4007
{
4009
4008
public Bound(System.Net.EndPoint localAddress) { }
4010
4009
public System.Net.EndPoint LocalAddress { get; }
4011
4010
public override string ToString() { }
4012
4011
}
4013
-
public class Close : Akka.IO.Tcp.CloseCommand
4012
+
public sealed class Close : Akka.IO.Tcp.CloseCommand
4014
4013
{
4015
4014
public static readonly Akka.IO.Tcp.Close Instance;
4016
4015
public override Akka.IO.Tcp.ConnectionClosed Event { get; }
@@ -4020,7 +4019,7 @@ namespace Akka.IO
4020
4019
protected CloseCommand() { }
4021
4020
public abstract Akka.IO.Tcp.ConnectionClosed Event { get; }
4022
4021
}
4023
-
public class Closed : Akka.IO.Tcp.ConnectionClosed
4022
+
public sealed class Closed : Akka.IO.Tcp.ConnectionClosed
4024
4023
{
4025
4024
public static readonly Akka.IO.Tcp.Closed Instance;
4026
4025
}
@@ -4031,6 +4030,7 @@ namespace Akka.IO
4031
4030
}
4032
4031
public sealed class CommandFailed : Akka.IO.Tcp.Event
4033
4032
{
4033
+
public CommandFailed(Akka.IO.Tcp.Command cmd, Akka.Util.Option<System.Exception> ex) { }
4034
4034
public CommandFailed(Akka.IO.Tcp.Command cmd) { }
4035
4035
public Akka.Util.Option<System.Exception> Cause { get; }
4036
4036
[Akka.Annotations.InternalApiAttribute()]
@@ -4040,25 +4040,25 @@ namespace Akka.IO
4040
4040
[Akka.Annotations.InternalApiAttribute()]
4041
4041
public Akka.IO.Tcp.CommandFailed WithCause(System.Exception cause) { }
4042
4042
}
4043
-
public class CompoundWrite : Akka.IO.Tcp.WriteCommand, System.Collections.Generic.IEnumerable<Akka.IO.Tcp.SimpleWriteCommand>, System.Collections.IEnumerable
4043
+
public sealed class CompoundWrite : Akka.IO.Tcp.WriteCommand, System.Collections.Generic.IEnumerable<Akka.IO.Tcp.SimpleWriteCommand>, System.Collections.IEnumerable
4044
4044
{
4045
4045
public CompoundWrite(Akka.IO.Tcp.SimpleWriteCommand head, Akka.IO.Tcp.WriteCommand tailCommand) { }
4046
4046
public Akka.IO.Tcp.SimpleWriteCommand Head { get; }
4047
4047
public Akka.IO.Tcp.WriteCommand TailCommand { get; }
4048
4048
public System.Collections.Generic.IEnumerator<Akka.IO.Tcp.SimpleWriteCommand> GetEnumerator() { }
4049
4049
public override string ToString() { }
4050
4050
}
4051
-
public class ConfirmedClose : Akka.IO.Tcp.CloseCommand
4051
+
public sealed class ConfirmedClose : Akka.IO.Tcp.CloseCommand
4052
4052
{
4053
4053
public static readonly Akka.IO.Tcp.ConfirmedClose Instance;
4054
4054
public override Akka.IO.Tcp.ConnectionClosed Event { get; }
4055
4055
}
4056
-
public class ConfirmedClosed : Akka.IO.Tcp.ConnectionClosed
4056
+
public sealed class ConfirmedClosed : Akka.IO.Tcp.ConnectionClosed
4057
4057
{
4058
4058
public static readonly Akka.IO.Tcp.ConfirmedClosed Instance;
public class Tcp : Akka.Actor.ExtensionIdProvider<Akka.IO.TcpExt>
3970
+
public sealed class Tcp : Akka.Actor.ExtensionIdProvider<Akka.IO.TcpExt>
3971
3971
{
3972
3972
public static readonly Akka.Actor.SupervisorStrategy ConnectionSupervisorStrategy;
3973
-
public static readonly Akka.IO.Tcp Instance;
3974
3973
public Tcp() { }
3975
3974
public override Akka.IO.TcpExt CreateExtension(Akka.Actor.ExtendedActorSystem system) { }
3976
3975
public static Akka.Actor.IActorRef Manager(Akka.Actor.ActorSystem system) { }
@@ -3979,7 +3978,7 @@ namespace Akka.IO
3979
3978
public static readonly Akka.IO.Tcp.Abort Instance;
3980
3979
public override Akka.IO.Tcp.ConnectionClosed Event { get; }
3981
3980
}
3982
-
public class Aborted : Akka.IO.Tcp.ConnectionClosed
3981
+
public sealed class Aborted : Akka.IO.Tcp.ConnectionClosed
3983
3982
{
3984
3983
public static readonly Akka.IO.Tcp.Aborted Instance;
3985
3984
public override bool IsAborted { get; }
@@ -3994,13 +3993,13 @@ namespace Akka.IO
3994
3993
public bool PullMode { get; }
3995
3994
public override string ToString() { }
3996
3995
}
3997
-
public class Bound : Akka.IO.Tcp.Event
3996
+
public sealed class Bound : Akka.IO.Tcp.Event
3998
3997
{
3999
3998
public Bound(System.Net.EndPoint localAddress) { }
4000
3999
public System.Net.EndPoint LocalAddress { get; }
4001
4000
public override string ToString() { }
4002
4001
}
4003
-
public class Close : Akka.IO.Tcp.CloseCommand
4002
+
public sealed class Close : Akka.IO.Tcp.CloseCommand
4004
4003
{
4005
4004
public static readonly Akka.IO.Tcp.Close Instance;
4006
4005
public override Akka.IO.Tcp.ConnectionClosed Event { get; }
@@ -4010,7 +4009,7 @@ namespace Akka.IO
4010
4009
protected CloseCommand() { }
4011
4010
public abstract Akka.IO.Tcp.ConnectionClosed Event { get; }
4012
4011
}
4013
-
public class Closed : Akka.IO.Tcp.ConnectionClosed
4012
+
public sealed class Closed : Akka.IO.Tcp.ConnectionClosed
4014
4013
{
4015
4014
public static readonly Akka.IO.Tcp.Closed Instance;
4016
4015
}
@@ -4021,6 +4020,7 @@ namespace Akka.IO
4021
4020
}
4022
4021
public sealed class CommandFailed : Akka.IO.Tcp.Event
4023
4022
{
4023
+
public CommandFailed(Akka.IO.Tcp.Command cmd, Akka.Util.Option<System.Exception> ex) { }
4024
4024
public CommandFailed(Akka.IO.Tcp.Command cmd) { }
4025
4025
public Akka.Util.Option<System.Exception> Cause { get; }
4026
4026
[Akka.Annotations.InternalApiAttribute()]
@@ -4030,25 +4030,25 @@ namespace Akka.IO
4030
4030
[Akka.Annotations.InternalApiAttribute()]
4031
4031
public Akka.IO.Tcp.CommandFailed WithCause(System.Exception cause) { }
4032
4032
}
4033
-
public class CompoundWrite : Akka.IO.Tcp.WriteCommand, System.Collections.Generic.IEnumerable<Akka.IO.Tcp.SimpleWriteCommand>, System.Collections.IEnumerable
4033
+
public sealed class CompoundWrite : Akka.IO.Tcp.WriteCommand, System.Collections.Generic.IEnumerable<Akka.IO.Tcp.SimpleWriteCommand>, System.Collections.IEnumerable
4034
4034
{
4035
4035
public CompoundWrite(Akka.IO.Tcp.SimpleWriteCommand head, Akka.IO.Tcp.WriteCommand tailCommand) { }
4036
4036
public Akka.IO.Tcp.SimpleWriteCommand Head { get; }
4037
4037
public Akka.IO.Tcp.WriteCommand TailCommand { get; }
4038
4038
public System.Collections.Generic.IEnumerator<Akka.IO.Tcp.SimpleWriteCommand> GetEnumerator() { }
4039
4039
public override string ToString() { }
4040
4040
}
4041
-
public class ConfirmedClose : Akka.IO.Tcp.CloseCommand
4041
+
public sealed class ConfirmedClose : Akka.IO.Tcp.CloseCommand
4042
4042
{
4043
4043
public static readonly Akka.IO.Tcp.ConfirmedClose Instance;
4044
4044
public override Akka.IO.Tcp.ConnectionClosed Event { get; }
4045
4045
}
4046
-
public class ConfirmedClosed : Akka.IO.Tcp.ConnectionClosed
4046
+
public sealed class ConfirmedClosed : Akka.IO.Tcp.ConnectionClosed
4047
4047
{
4048
4048
public static readonly Akka.IO.Tcp.ConfirmedClosed Instance;
0 commit comments