org.otfeed.event
Interface ICompletionDelegate
- All Known Implementing Classes:
- CommonDelegate
public interface ICompletionDelegate
Defines contract for the listeners that want to receive
end-of-stream notification. After such a notification
is recevied, no more stream data can arrive.
onDataEnd
void onDataEnd(OTError error)
- Handles end-of-stream event.
If data stream is ended with error (because server
returned an error, or driver encountered an error condition),
error
parameter will be not null. On normal stream
completion, error
parameter is null.
It is guarnteed, that this method will be called before
request completes.
- Parameters:
error
- error code, if stream completion was abnormal.
Null otherwise.
Copyright © 2007 Mike Kroutikov. All Rights Reserved.