|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RemoteStreamMonitor<StreamServerType>
Interface for monitoring the progress of a remote stream, such as
RemoteInputStream
or RemoteOutputStream
.
Method Summary | |
---|---|
void |
bytesMoved(StreamServerType stream,
int numBytes,
boolean isReattempt)
Called when some bytes are transferred over the wire by the given stream. |
void |
bytesSkipped(StreamServerType stream,
long numBytes,
boolean isReattempt)
Called when some bytes are skipped for transfer over the wire by the given stream. |
void |
closed(StreamServerType stream,
boolean clean)
Called when the given stream is closed. |
void |
failure(StreamServerType stream,
Exception e)
Called when an IOException is thrown by one of the stream methods. |
void |
localBytesMoved(StreamServerType stream,
int numBytes)
Called when some bytes are moved to/from the local stream. |
void |
localBytesSkipped(StreamServerType stream,
long numBytes)
Called when some bytes from the local stream are skipped. |
Method Detail |
---|
void failure(StreamServerType stream, Exception e)
stream
- the stream on which the exception was throwne
- the thrown exceptionvoid bytesMoved(StreamServerType stream, int numBytes, boolean isReattempt)
stream
- the stream for which the bytes are being transferrednumBytes
- number of bytes transferredisReattempt
- indicates if this is the first attempt
(false
) or a subsequent attempt
(true
)void bytesSkipped(StreamServerType stream, long numBytes, boolean isReattempt)
stream
- the stream for which the bytes are being skippednumBytes
- number of actual bytes skippedisReattempt
- indicates if this is the first attempt
(false
) or a subsequent attempt
(true
)void localBytesMoved(StreamServerType stream, int numBytes)
stream
- the remote stream for which the bytes are being movednumBytes
- number of bytes movedvoid localBytesSkipped(StreamServerType stream, long numBytes)
stream
- the stream for which the bytes are being skippednumBytes
- number of actual bytes skippedvoid closed(StreamServerType stream, boolean clean)
stream
- the stream for which the bytes are being skippedclean
- true
iff all data was sent successfully over
the wire and the stream was closed, false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |