File tree Expand file tree Collapse file tree 7 files changed +22
-6
lines changed
rsocket-core/src/main/java/io/rsocket
rsocket-load-balancer/src/main/java/io/rsocket/stat
rsocket-transport-netty/src/main/java/io/rsocket/transport/netty Expand file tree Collapse file tree 7 files changed +22
-6
lines changed Original file line number Diff line number Diff line change 22
22
public interface Payload {
23
23
/**
24
24
* Returns whether the payload has metadata, useful for tell if metadata is empty or not present.
25
+ *
26
+ * @return whether payload has non-null (possibly empty) metadata
25
27
*/
26
28
boolean hasMetadata ();
27
29
Original file line number Diff line number Diff line change 36
36
37
37
/** Factory for creating RSocket clients and servers. */
38
38
public interface RSocketFactory {
39
- /** Creates a factory that establishes client connections to other RSockets */
39
+ /**
40
+ * Creates a factory that establishes client connections to other RSockets.
41
+ *
42
+ * @return a client factory
43
+ */
40
44
static ClientRSocketFactory connect () {
41
45
return new ClientRSocketFactory ();
42
46
}
43
47
44
- /** Creates a factory that receives server connections from client RSockets */
48
+ /**
49
+ * Creates a factory that receives server connections from client RSockets.
50
+ *
51
+ * @return a server factory.
52
+ */
45
53
static ServerRSocketFactory receive () {
46
54
return new ServerRSocketFactory ();
47
55
}
Original file line number Diff line number Diff line change 40
40
* <p>The only way to differentiate these two frames is determining whether the stream Id is odd or
41
41
* even. Even IDs are for the streams initiated by server and odds are for streams initiated by the
42
42
* client.
43
- *
44
- * <p>
45
43
*/
46
44
public class ClientServerInputMultiplexer {
47
45
private static final Logger LOGGER = LoggerFactory .getLogger ("io.rsocket.FrameLogger" );
Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ default boolean isExpired() {
63
63
/**
64
64
* Checks if the lease is expired for the passed {@code now}.
65
65
*
66
+ * @param now current time in millis.
66
67
* @return {@code true} if the lease has expired.
67
68
*/
68
69
default boolean isExpired (long now ) {
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ public interface Quantile {
22
22
/**
23
23
* Insert a data point `x` in the quantile estimator.
24
24
*
25
- * @param x
25
+ * @param x the data point to add.
26
26
*/
27
27
public void insert (double x );
28
28
}
Original file line number Diff line number Diff line change @@ -31,7 +31,10 @@ public RSocketLengthCodec() {
31
31
/**
32
32
* Simplified non-netty focused decode usage.
33
33
*
34
+ * @param in the input buffer to read data from.
35
+ * @return decoded buffer or null is none available.
34
36
* @see #decode(ChannelHandlerContext, ByteBuf)
37
+ * @throws Exception if any error happens.
35
38
*/
36
39
public Object decode (ByteBuf in ) throws Exception {
37
40
return decode (null , in );
Original file line number Diff line number Diff line change @@ -51,7 +51,11 @@ public Mono<Void> onClose() {
51
51
return onClose ;
52
52
}
53
53
54
- /** @see NettyContext#address() */
54
+ /**
55
+ * @see NettyContext#address()
56
+ *
57
+ * @return socket address.
58
+ */
55
59
public InetSocketAddress address () {
56
60
return context .address ();
57
61
}
You can’t perform that action at this time.
0 commit comments