Package org.jgroups.util
Class StateTransferResult
- java.lang.Object
-
- org.jgroups.util.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
-
-
Constructor Summary
Constructors Constructor Description StateTransferResult()
StateTransferResult(byte[] buffer)
StateTransferResult(java.lang.Throwable t)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getBuffer()
java.lang.Throwable
getException()
boolean
hasBuffer()
boolean
hasException()
java.lang.String
toString()
-