public class EngineResult extends Object implements IEngineResult
IEngineResult interface.| Constructor and Description |
|---|
EngineResult(Status status,
HandshakeStatus handshakeStatus,
int bytesConsumed,
int bytesProduced)
Initializes a new instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
int |
bytesConsumed()
Returns the number of bytes consumed from the input buffer.
|
int |
bytesProduced()
Returns the number of bytes written to the output buffer.
|
HandshakeStatus |
getHandshakeStatus()
Gets the current handshake status produced by the
IEngine call. |
Status |
getStatus()
Gets the overall result of the
IEngine calls. |
public EngineResult(Status status, HandshakeStatus handshakeStatus, int bytesConsumed, int bytesProduced)
status - the return value of the operationhandshakeStatus - the current handshaking statusbytesConsumed - the number of bytes consumed from the input bufferbytesProduced - the number of bytes placed into the output bufferIllegalArgumentException - if the status or handshakeStatus
arguments are null, or if bytesConsumed or bytesProduced is
negative.public final int bytesConsumed()
IEngineResultbytesConsumed in interface IEngineResultpublic final int bytesProduced()
IEngineResultbytesProduced in interface IEngineResultpublic final Status getStatus()
IEngineResultIEngine calls.getStatus in interface IEngineResultpublic final HandshakeStatus getHandshakeStatus()
IEngineResultIEngine call.
It should match the value returned by the
IEngine.getHandshakeStatus() method. The only exception to this
rule is when the call has just finished the ongoing handshake. In such
situation this method should return the HandshakeStatus.FINISHED
status which is forbidden for the IEngine.getHandshakeStatus()
method.getHandshakeStatus in interface IEngineResultCopyright © 2017–2022 SNF4J.ORG. All rights reserved.