|
BEA Systems, Inc. | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
public static interface SocketAcceptorDeviceChannel.SocketAcceptorListener
This interface must be implemented by any class which is set as an asynchronous listener on this channel.
| Method Summary | |
|---|---|
void |
acceptorError(SocketAcceptorDeviceChannel sarc,
IOException e)
This callback is invoked when the accept throws an IOException. |
void |
connectionAccepted(SocketAcceptorDeviceChannel sarc,
SocketChannel schan)
This callback is invoked when a new connection is accepted. |
void |
connectionClosed(SocketAcceptorDeviceChannel sarc,
SocketChannel schan,
IOException e)
This callback is invoked when the connection can no longer continue operating. |
void |
connectionReadable(SocketAcceptorDeviceChannel sarc,
SocketChannel schan)
This callback is invoked when data ia available on a connection accepted by the channel. |
| Method Detail |
|---|
void connectionAccepted(SocketAcceptorDeviceChannel sarc,
SocketChannel schan)
throws IOException
If reading or writing to the channel fails, or for some
reason the channel cannot be used, IOException should be
thrown. This will cause the connectionClosed
callback to be invoked, and the connection to be closed and
thrown away. It will not cause ChannelManager.reactivateChannels() to be invoked.
sarc - the SocketAcceptorDeviceChannel
which accepted the connectionschan - the newly accepted SocketChannel
IOException - if an I/O error occurs
void connectionReadable(SocketAcceptorDeviceChannel sarc,
SocketChannel schan)
throws IOException
connectionClosed callback to be
invoked, and the connection to be closed and thrown away.
It will not cause ChannelManager.reactivateChannels()
to be invoked.
See SocketDeviceChannel.SocketInputListener.connectionReadable(com.connecterra.ale.reader.SocketDeviceChannel)
for additional comments on input buffering and blocking.
sarc - the SocketAcceptorDeviceChannel
which accepted the connectionschan - the SocketChannel which has input
available.
IOException - if an I/O error occurs
void connectionClosed(SocketAcceptorDeviceChannel sarc,
SocketChannel schan,
IOException e)
sarc - the SocketAcceptorDeviceChannel
which accepted the connectionschan - the SocketChannel which is no
longer usablee - if a callback failed, the IOException
which was thrown. Otherwise, null.
void acceptorError(SocketAcceptorDeviceChannel sarc,
IOException e)
sarc - the SocketAcceptorDeviceChannel
which tried to accepte - the IOException which was thrown.
Otherwise, null.
|
Documentation is available at ${DOCSWEBROOT} Copyright 2007 BEA Systems Inc. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||