Package org.stellar.sdk.requests
Interface EventListener<T>
public interface EventListener<T>
This interface is used in
RequestBuilder
classes stream
method.-
Method Summary
-
Method Details
-
onEvent
This method will be called when new event is sent by a server.- Parameters:
object
- object deserialized from the event data
-
onFailure
This method will be called when the stream encounters an error.- Parameters:
error
- exception which caused the failureresponseCode
- the HTTP status code from the event stream response
-