public interface MessageHandler
| Modifier and Type | Field and Description |
|---|---|
static MessageHandler |
NULL |
| Modifier and Type | Method and Description |
|---|---|
void |
handleFailure(Connection connection,
IOException e)
Handle an input failure condition.
|
void |
handleFinished(Connection connection)
Handle the condition where a connection is completely finished (both reads and writes).
|
void |
handleMessage(Connection connection,
InputStream dataStream)
Handle a message.
|
void |
handleShutdown(Connection connection)
Handle the end-of-input condition.
|
static final MessageHandler NULL
void handleMessage(Connection connection, InputStream dataStream) throws IOException
connection - the connection to the remote sidedataStream - the message bytesIOException - if an I/O error occursvoid handleShutdown(Connection connection) throws IOException
connection - the connection to the remote sideIOException - if an I/O error occursvoid handleFailure(Connection connection, IOException e) throws IOException
Connection.close()d.connection - the connection to the remote sidee - the read error receivedIOException - if an I/O error occursvoid handleFinished(Connection connection) throws IOException
connection - the connection that endedIOException - if an I/O error occursCopyright © 2018 JBoss by Red Hat. All rights reserved.