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
* Extract interface `AvailabilityProvider`
#### Problem
`DuplexConnection`, `ReactiveSocket` and `ReactiveSocketClient` all provide a method `double availability()` and so can benefit from having a common interface.
This will be useful for giving event callbacks that retrieve availability as availability follows a pull model instead of push.
#### Modification
Added a new interface `AvailabilityProvider` and have the other interfaces extend it.
#### Result
Common way to access availabilty.
* Rename `AvailabilityProvider` to `Availability`
* A contract providing different interaction models for <a href="https://github.com/ReactiveSocket/reactivesocket/blob/master/Protocol.md">ReactiveSocket protocol</a>.
24
23
*/
25
-
publicinterfaceReactiveSocket {
24
+
publicinterfaceReactiveSocketextendsAvailability{
26
25
27
26
/**
28
27
* Fire and Forget interaction model of {@code ReactiveSocket}.
@@ -71,11 +70,7 @@ public interface ReactiveSocket {
71
70
*/
72
71
Publisher<Void> metadataPush(Payloadpayload);
73
72
74
-
/**
75
-
* Client check for availability to send request based on lease
76
-
*
77
-
* @return 0.0 to 1.0 indicating availability of sending requests
0 commit comments