Page Summary
-
PayloadTransferUpdate.Builder is a builder class for creating PayloadTransferUpdate objects.
-
It provides constructors to create a builder with default values or by copying an existing PayloadTransferUpdate.
-
The builder includes methods to set the bytes transferred, payload ID, status, and total bytes for the payload transfer update.
-
The
build()method is used to create the final PayloadTransferUpdate instance from the builder.
Builder class for PayloadTransferUpdate.
Public Constructor Summary
|
Builder()
Creates a builder using the default payload transfer update.
|
|
Public Method Summary
| PayloadTransferUpdate |
build()
Builds an instance of
PayloadTransferUpdate.
|
| PayloadTransferUpdate.Builder |
setBytesTransferred(long bytesTransferred)
Sets the number of bytes transferred so far.
|
| PayloadTransferUpdate.Builder |
setPayloadId(long payloadId)
Sets a payload identifier.
|
| PayloadTransferUpdate.Builder |
setStatus(int status)
Sets the status of the payload.
|
| PayloadTransferUpdate.Builder |
setTotalBytes(long totalBytes)
Sets the total number of bytes in the payload.
|
Inherited Method Summary
Public Constructors
public Builder ()
Creates a builder using the default payload transfer update.
public Builder (PayloadTransferUpdate origin)
Creates a builder, copying the payload transfer update.
Public Methods
public PayloadTransferUpdate build ()
Builds an instance of
PayloadTransferUpdate.
public PayloadTransferUpdate.Builder setBytesTransferred (long bytesTransferred)
Sets the number of bytes transferred so far.
public PayloadTransferUpdate.Builder setPayloadId (long payloadId)
Sets a payload identifier.
public PayloadTransferUpdate.Builder setStatus (int status)
Sets the status of the payload.
public PayloadTransferUpdate.Builder setTotalBytes (long totalBytes)
Sets the total number of bytes in the payload.