Package org.elasticsearch.transport
Class InboundDecoder
java.lang.Object
org.elasticsearch.transport.InboundDecoder
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,org.elasticsearch.common.lease.Releasable
public class InboundDecoder
extends java.lang.Object
implements org.elasticsearch.common.lease.Releasable
-
Constructor Summary
Constructors Constructor Description InboundDecoder(Version version, PageCacheRecycler recycler) -
Method Summary
Modifier and Type Method Description voidclose()intdecode(ReleasableBytesReference reference, java.util.function.Consumer<java.lang.Object> fragmentConsumer)intinternalDecode(ReleasableBytesReference reference, java.util.function.Consumer<java.lang.Object> fragmentConsumer)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
InboundDecoder
-
-
Method Details
-
decode
public int decode(ReleasableBytesReference reference, java.util.function.Consumer<java.lang.Object> fragmentConsumer) throws java.io.IOException- Throws:
java.io.IOException
-
internalDecode
public int internalDecode(ReleasableBytesReference reference, java.util.function.Consumer<java.lang.Object> fragmentConsumer) throws java.io.IOException- Throws:
java.io.IOException
-
close
public void close()- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Specified by:
closein interfaceorg.elasticsearch.common.lease.Releasable
-