Class StateTransferResult


  • public class StateTransferResult
    extends java.lang.Object
    Encapsulates the result of a state transfer. When buffer is set, then this is the result of a state transfer with STATE_TRANSFER. When exception is non-null, then an exception occurred. When both fields are null, then the (streaming) state transfer was successful.
    Since:
    3.0
    Author:
    Bela Ban
    • Field Detail

      • buffer

        protected final byte[] buffer
      • exception

        protected final java.lang.Throwable exception
    • Constructor Detail

      • StateTransferResult

        public StateTransferResult()
      • StateTransferResult

        public StateTransferResult​(byte[] buffer)
      • StateTransferResult

        public StateTransferResult​(java.lang.Throwable t)
    • Method Detail

      • hasBuffer

        public boolean hasBuffer()
      • hasException

        public boolean hasException()
      • getBuffer

        public byte[] getBuffer()
      • getException

        public java.lang.Throwable getException()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object