Package org.elasticsearch.transport
Class InboundAggregator
java.lang.Object
org.elasticsearch.transport.InboundAggregator
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,org.elasticsearch.common.lease.Releasable
public class InboundAggregator
extends java.lang.Object
implements org.elasticsearch.common.lease.Releasable
-
Constructor Summary
Constructors Constructor Description InboundAggregator(java.util.function.Supplier<CircuitBreaker> circuitBreaker, java.util.function.Function<java.lang.String,RequestHandlerRegistry<TransportRequest>> registryFunction)
-
Method Summary
Modifier and Type Method Description void
aggregate(ReleasableBytesReference content)
void
close()
InboundMessage
finishAggregation()
void
headerReceived(Header header)
boolean
isAggregating()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
InboundAggregator
public InboundAggregator(java.util.function.Supplier<CircuitBreaker> circuitBreaker, java.util.function.Function<java.lang.String,RequestHandlerRegistry<TransportRequest>> registryFunction)
-
-
Method Details
-
headerReceived
-
aggregate
-
finishAggregation
- Throws:
java.io.IOException
-
isAggregating
public boolean isAggregating() -
close
public void close()- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Specified by:
close
in interfaceorg.elasticsearch.common.lease.Releasable
-