Skip to content

Commit ba2feca

Browse files
committed
Reduce public API surface
1 parent 48f2b57 commit ba2feca

File tree

6 files changed

+13
-9
lines changed

6 files changed

+13
-9
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package co.elastic.clients.transport.http;
2+
3+
public class Node {
4+
}

java-client/src/main/java/co/elastic/clients/transport/rest5_client/low_level/BasicAsyncEntityProducer.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
/**
3838
* Basic implementation of {@link AsyncEntityProducer}
3939
*/
40-
public class BasicAsyncEntityProducer implements AsyncEntityProducer {
40+
class BasicAsyncEntityProducer implements AsyncEntityProducer {
4141

4242
private final HttpEntity entity;
4343
private final ByteBuffer buffer;
@@ -50,7 +50,7 @@ public class BasicAsyncEntityProducer implements AsyncEntityProducer {
5050
/**
5151
* Create new basic entity producer
5252
*/
53-
public BasicAsyncEntityProducer(final HttpEntity entity, final int bufferSize) {
53+
BasicAsyncEntityProducer(final HttpEntity entity, final int bufferSize) {
5454
this.entity = Args.notNull(entity, "Http Entity");
5555
this.buffer = ByteBuffer.allocate(bufferSize);
5656
this.channelRef = new AtomicReference<>();
@@ -62,7 +62,7 @@ public BasicAsyncEntityProducer(final HttpEntity entity, final int bufferSize) {
6262
/**
6363
* Create new basic entity producer with default buffer limit of 100MB
6464
*/
65-
public BasicAsyncEntityProducer(final HttpEntity entity) {
65+
BasicAsyncEntityProducer(final HttpEntity entity) {
6666
this(entity, DEFAULT_BUFFER_INITIAL_CAPACITY);
6767
}
6868

java-client/src/main/java/co/elastic/clients/transport/rest5_client/low_level/BasicAsyncResponseConsumer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
import org.apache.hc.core5.http.nio.support.AbstractAsyncResponseConsumer;
3030
import org.apache.hc.core5.http.protocol.HttpContext;
3131

32-
public class BasicAsyncResponseConsumer extends AbstractAsyncResponseConsumer<ClassicHttpResponse,
32+
class BasicAsyncResponseConsumer extends AbstractAsyncResponseConsumer<ClassicHttpResponse,
3333
ByteArrayEntity> {
3434

3535
private volatile BasicClassicHttpResponse finalResponse;
@@ -39,7 +39,7 @@ public class BasicAsyncResponseConsumer extends AbstractAsyncResponseConsumer<Cl
3939
/**
4040
* Creates a new instance of this consumer with the provided buffer limit
4141
*/
42-
public BasicAsyncResponseConsumer(AbstractBinAsyncEntityConsumer consumer) {
42+
BasicAsyncResponseConsumer(AbstractBinAsyncEntityConsumer consumer) {
4343
super(consumer);
4444
}
4545

java-client/src/main/java/co/elastic/clients/transport/rest5_client/low_level/BufferedByteConsumer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@
2828

2929
import static co.elastic.clients.transport.rest5_client.low_level.Constants.DEFAULT_BUFFER_INITIAL_CAPACITY;
3030

31-
public class BufferedByteConsumer extends AbstractBinAsyncEntityConsumer<ByteArrayEntity> {
31+
class BufferedByteConsumer extends AbstractBinAsyncEntityConsumer<ByteArrayEntity> {
3232

3333
private volatile ByteArrayBuffer buffer;
3434
private final int limit;
3535
private ContentType contentType;
3636

37-
public BufferedByteConsumer(int bufferLimit) {
37+
BufferedByteConsumer(int bufferLimit) {
3838
super();
3939
if (bufferLimit <= 0) {
4040
throw new IllegalArgumentException("Buffer limit must be greater than 0");

java-client/src/main/java/co/elastic/clients/transport/rest5_client/low_level/Constants.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
package co.elastic.clients.transport.rest5_client.low_level;
2121

22-
public class Constants {
22+
class Constants {
2323
// default buffer limit is 100MB
2424
public static final int DEFAULT_BUFFER_LIMIT = 100 * 1024 * 1024;
2525
public static final int DEFAULT_BUFFER_INITIAL_CAPACITY = 8192;

java-client/src/main/java/co/elastic/clients/transport/rest5_client/low_level/RequestLogger.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
*/
4444
final class RequestLogger {
4545

46-
private static final Log tracer = LogFactory.getLog("tracer");
46+
private static final Log tracer = LogFactory.getLog(Request.class);
4747

4848
private RequestLogger() {
4949
}

0 commit comments

Comments
 (0)