Package com.swiftmq.swiftlet.net
Interface InboundHandler
-
- All Known Implementing Classes:
InboundReader
,InboundReader
,InboundReader
,InboundReader
,InboundReader
,InboundReader
,InboundReader
,InboundReader
,PacketDecoder
,VersionedConnection
,VersionSelector
public interface InboundHandler
An InboundHandler should be registered at aConnection
from aConnectionListener
during theconnected()
call. It will be informed when data is available on the connection's input stream and should read this data out of the stream.- Author:
- IIT GmbH, Bremen/Germany, Copyright (c) 2000-2002, All Rights Reserved
- See Also:
Connection
,ConnectionListener
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
dataAvailable(Connection connection, java.io.InputStream inputStream)
Will be called if data is available on the connection's input stream.
-
-
-
Method Detail
-
dataAvailable
void dataAvailable(Connection connection, java.io.InputStream inputStream) throws java.io.IOException
Will be called if data is available on the connection's input stream. The inbound handler must read this data out of the stream and should forward it to further processing to some async running task to return immediately. If this method throws an IOException, the connection will be closed.- Parameters:
connection
- connection.inputStream
- the connections's input stream.- Throws:
java.io.IOException
- on error to close the connection.
-
-