org.jboss.mq.il.uil2
Interface SocketManagerHandler

All Superinterfaces:
StreamListener (src)
All Known Implementing Classes:
ServerSocketManagerHandler (src) , UILClientILService (src)

public interface SocketManagerHandler
extends StreamListener (src)


Method Summary
 void asynchFailure(java.lang.String error, java.lang.Throwable e)
          Report a connection failure
 void close()
          Handle closedown, this maybe invoked many times due to an explicit close and/or a connection failure.
 void handleMsg(BaseMsg (src)  msg)
          Handle the message
 void onStreamNotification(java.lang.Object stream, int size)
          Handle a stream notification
 

Method Detail

handleMsg

public void handleMsg(BaseMsg (src)  msg)
               throws java.lang.Exception
Handle the message

Parameters:
msg - the message to handler
Throws:
java.lang.Exception - for any error

onStreamNotification

public void onStreamNotification(java.lang.Object stream,
                                 int size)
Handle a stream notification

Specified by:
onStreamNotification in interface StreamListener (src)
Parameters:
stream - the stream
size - the bytes since the last notification

asynchFailure

public void asynchFailure(java.lang.String error,
                          java.lang.Throwable e)
Report a connection failure

Parameters:
error - the error text

close

public void close()
Handle closedown, this maybe invoked many times due to an explicit close and/or a connection failure.