Class SaJNIPrpcResult

  • All Implemented Interfaces:
    java.io.Serializable

    public class SaJNIPrpcResult
    extends java.lang.Object
    implements java.io.Serializable
    Result bean for PRPC.
    Author:
    chm
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      SaJNIPrpcResult​(java.nio.ByteBuffer byteBuffer, java.lang.String errorMsg, int errCode)
      Creates a new SaJNIPrpcResutlt.
    • Constructor Detail

      • SaJNIPrpcResult

        public SaJNIPrpcResult​(java.nio.ByteBuffer byteBuffer,
                               java.lang.String errorMsg,
                               int errCode)
        Creates a new SaJNIPrpcResutlt.
        Parameters:
        byteBuffer - the byte buffer
        errorMsg - the error message
        errCode - the error code
    • Method Detail

      • getBuffer

        public java.nio.ByteBuffer getBuffer()
        Returns:
        the byte buffer containing the returned bytes
      • getErrorMessage

        public java.lang.String getErrorMessage()
        Returns:
        the error message or an empty string if there was no error
      • getErrorCode

        public int getErrorCode()
        Returns:
        the error code or 0 if there was no error