|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TransferEvent
An event fired to a transfer listener during an artifact/metadata transfer.
TransferListener
Nested Class Summary | |
---|---|
static class |
TransferEvent.EventType
The type of the event. |
static class |
TransferEvent.RequestType
The type of the request/transfer. |
Method Summary | |
---|---|
java.nio.ByteBuffer |
getDataBuffer()
Gets the byte buffer holding the transferred bytes since the last event. |
int |
getDataLength()
Gets the number of bytes that have been transferred since the last event. |
java.lang.Exception |
getException()
Gets the error that occurred during the transfer. |
TransferEvent.RequestType |
getRequestType()
Gets the type of the request/transfer. |
TransferResource |
getResource()
Gets the resource that is being transferred. |
long |
getTransferredBytes()
Gets the total number of bytes that have been transferred since the download/upload was started. |
TransferEvent.EventType |
getType()
Gets the type of the event. |
Method Detail |
---|
TransferEvent.EventType getType()
null
.TransferEvent.RequestType getRequestType()
null
.TransferResource getResource()
null
.long getTransferredBytes()
getDataLength()
java.nio.ByteBuffer getDataBuffer()
null
if not applicable to the event, i.e. if the event type is not
TransferEvent.EventType.PROGRESSED
.int getDataLength()
getTransferredBytes()
java.lang.Exception getException()
null
if none.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |