/** * Returns the major version of the protocol. * * @return the major version of the protocol */ public int getMajorVersion() { return getByteBuf().getUnsignedShort(OFFSET_MAJOR_VERSION); }
private int getTokenLength() { return getByteBuf().getUnsignedShort(OFFSET_TOKEN_LENGTH); } }
/** * Returns the minor version of the protocol. * * @return the minor version of the protocol */ public int getMinorVersion() { return getByteBuf().getUnsignedShort(OFFSET_MINOR_VERSION); }
/** * Returns the last received server position. * * @return the last received server position */ public long getLastReceivedServerPosition() { return getByteBuf().getLong(getLastReceivedServerPositionOffset()); }
/** * Returns the first available client position. * * @return the first available client position */ public long getFirstAvailableClientPosition() { return getByteBuf().getLong(getFirstAvailableClientPositionOffset()); }
/** * Returns the resume identification token directly. * * <p><b>Note:</b> this resume identification token will be outside of the {@link Frame}'s * lifecycle and may be released at any time. It is highly recommended that you {@link * ByteBuf#retain()} the resume identification token if you store it. * * @return the resume identification token directly * @see #mapResumeIdentificationToken(Function) */ public ByteBuf getUnsafeResumeIdentificationToken() { return getByteBuf().slice(OFFSET_RESUME_IDENTIFICATION_TOKEN, getTokenLength()); }
/** * Returns the major version of the protocol. * * @return the major version of the protocol */ public int getMajorVersion() { return getByteBuf().getUnsignedShort(OFFSET_MAJOR_VERSION); }
/** * Returns the minor version of the protocol. * * @return the minor version of the protocol */ public int getMinorVersion() { return getByteBuf().getUnsignedShort(OFFSET_MINOR_VERSION); }
private int getTokenLength() { return getByteBuf().getUnsignedShort(OFFSET_TOKEN_LENGTH); } }
/** * Returns the first available client position. * * @return the first available client position */ public long getFirstAvailableClientPosition() { return getByteBuf().getLong(getFirstAvailableClientPositionOffset()); }
/** * Returns the last received server position. * * @return the last received server position */ public long getLastReceivedServerPosition() { return getByteBuf().getLong(getLastReceivedServerPositionOffset()); }
/** * Returns the resume identification token directly. * * <p><b>Note:</b> this resume identification token will be outside of the {@link Frame}'s * lifecycle and may be released at any time. It is highly recommended that you {@link * ByteBuf#retain()} the resume identification token if you store it. * * @return the resume identification token directly * @see #mapResumeIdentificationToken(Function) */ public ByteBuf getUnsafeResumeIdentificationToken() { return getByteBuf().slice(OFFSET_RESUME_IDENTIFICATION_TOKEN, getTokenLength()); }