8000 cleanup of javadoc for core packages (#368) · chakra-coder/rsocket-java@6b2c336 · GitHub
[go: up one dir, main page]

Skip to content
< 8000 /react-partial>

Commit 6b2c336

Browse files
authored
cleanup of javadoc for core packages (rsocket#368)
1 parent aa4a9ec commit 6b2c336

File tree

7 files changed

+22
-6
lines changed

7 files changed

+22
-6
lines changed

rsocket-core/src/main/java/io/rsocket/Payload.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
public interface Payload {
2323
/**
2424
* 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
2527
*/
2628
boolean hasMetadata();
2729

rsocket-core/src/main/java/io/rsocket/RSocketFactory.java

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,20 @@
3636

3737
/** Factory for creating RSocket clients and servers. */
3838
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+
*/
4044
static ClientRSocketFactory connect() {
4145
return new ClientRSocketFactory();
4246
}
4347

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+
*/
4553
static ServerRSocketFactory receive() {
4654
return new ServerRSocketFactory();
4755
}

rsocket-core/src/main/java/io/rsocket/internal/ClientServerInputMultiplexer.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@
4040
* <p>The only way to differentiate these two frames is determining whether the stream Id is odd or
4141
* even. Even IDs are for the streams initiated by server and odds are for streams initiated by the
4242
* client.
43-
*
44-
* <p>
4543
*/
4644
public class ClientServerInputMultiplexer {
4745
private static final Logger LOGGER = LoggerFactory.getLogger("io.rsocket.FrameLogger");

rsocket-core/src/main/java/io/rsocket/lease/Lease.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ default boolean isExpired() {
6363
/**
6464
* Checks if the lease is expired for the passed {@code now}.
6565
*
66+
* @param now current time in millis.
6667
* @return {@code true} if the lease has expired.
6768
*/
6869
default boolean isExpired(long now) {

rsocket-load-balancer/src/main/java/io/rsocket/stat/Quantile.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public interface Quantile {
2222
/**
2323
* Insert a data point `x` in the quantile estimator.
2424
*
25-
* @param x
25+
* @param x the data point to add.
2626
*/
2727
public void insert(double x);
2828
}

rsocket-transport-netty/src/main/java/io/rsocket/transport/netty/RSocketLengthCodec.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ public RSocketLengthCodec() {
3131
/**
3232
* Simplified non-netty focused decode usage.
3333
*
34+
* @param in the input buffer to read data from.
35+
* @return decoded buffer or null is none available.
3436
* @see #decode(ChannelHandlerContext, ByteBuf)
37+
* @throws Exception if any error happens.
3538
*/
3639
public Object decode(ByteBuf in) throws Exception {
3740
return decode(null, in);

rsocket-transport-netty/src/main/java/io/rsocket/transport/netty/server/NettyContextCloseable.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,11 @@ public Mono<Void> onClose() {
5151
return onClose;
5252
}
5353

54-
/** @see NettyContext#address() */
54+
/**
55+
* @see NettyContext#address()
56+
*
57+
* @return socket address.
58+
*/
5559
public InetSocketAddress address() {
5660
return context.address();
5761
}

0 commit comments

Comments
 (0)
0