public enum PayloadStatus

  1. Object
  2. Enum<PayloadStatus>
  3. PayloadStatus

ImplementsComparable<PayloadStatus>

Where a payload transfer got to, carried by PayloadTransferUpdate.

Enum constants

IN_PROGRESSBytes are still moving.
SUCCESSEvery byte arrived.
FAILUREThe transfer failed and will not resume.
CANCELEDThe transfer was cancelled by either side.

Methods

public static PayloadStatus[] values()
public static PayloadStatus valueOf(String name)

Inherited methods

Enum constant details

IN_PROGRESS

IN_PROGRESS
Bytes are still moving. PayloadTransferUpdate.getBytesTransferred() says how many so far.

SUCCESS

SUCCESS
Every byte arrived.

FAILURE

FAILURE
The transfer failed and will not resume.

CANCELED

CANCELED
The transfer was cancelled by either side.

Method details

values

public static PayloadStatus[] values()

valueOf

public static PayloadStatus valueOf(String name)