\doxysection{com.\+tritondigital.\+net.\+streaming.\+proxy.\+client.\+Client.\+Data\+Received\+Listener Interface Reference}
\hypertarget{interfacecom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1client_1_1Client_1_1DataReceivedListener}{}\label{interfacecom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1client_1_1Client_1_1DataReceivedListener}\index{com.tritondigital.net.streaming.proxy.client.Client.DataReceivedListener@{com.tritondigital.net.streaming.proxy.client.Client.DataReceivedListener}}


Interface definition for a callback to be invoked when new data is received from the stream.  


\doxysubsubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
boolean \mbox{\hyperlink{interfacecom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1client_1_1Client_1_1DataReceivedListener_a75eb7a77f6744660561842ec2fc16a97}{on\+Data\+Received}} (byte\mbox{[}$\,$\mbox{]} data, int data\+Length)
\begin{DoxyCompactList}\small\item\em Data has been received from the stream. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Interface definition for a callback to be invoked when new data is received from the stream. 

Methods on this listener may be invoked from a secondary thread. The class implementing this listener should be thread-\/safe. 

\doxysubsection{Member Function Documentation}
\Hypertarget{interfacecom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1client_1_1Client_1_1DataReceivedListener_a75eb7a77f6744660561842ec2fc16a97}\label{interfacecom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1client_1_1Client_1_1DataReceivedListener_a75eb7a77f6744660561842ec2fc16a97} 
\index{com.tritondigital.net.streaming.proxy.client.Client.DataReceivedListener@{com.tritondigital.net.streaming.proxy.client.Client.DataReceivedListener}!onDataReceived@{onDataReceived}}
\index{onDataReceived@{onDataReceived}!com.tritondigital.net.streaming.proxy.client.Client.DataReceivedListener@{com.tritondigital.net.streaming.proxy.client.Client.DataReceivedListener}}
\doxysubsubsection{\texorpdfstring{onDataReceived()}{onDataReceived()}}
{\footnotesize\ttfamily boolean com.\+tritondigital.\+net.\+streaming.\+proxy.\+client.\+Client.\+Data\+Received\+Listener.\+on\+Data\+Received (\begin{DoxyParamCaption}\item[{byte\mbox{[}$\,$\mbox{]}}]{data,  }\item[{int}]{data\+Length }\end{DoxyParamCaption})}



Data has been received from the stream. 

To allow buffers reusing, the length of valid data in the array is passed. Returns false if there was an error while treating / enqueuing the data, which typically indicates to terminate the connection. 

The documentation for this interface was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
streamingproxy/src/main/java/com/tritondigital/net/streaming/proxy/client/Client.\+java\end{DoxyCompactItemize}
