|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.mina.core.polling.AbstractPollingIoProcessor<AprSession>
org.apache.mina.transport.socket.apr.AprIoProcessor
public final class AprIoProcessor
The class in charge of processing socket level IO events for the
AprSocketConnector
| Field Summary |
|---|
| Fields inherited from class org.apache.mina.core.polling.AbstractPollingIoProcessor |
|---|
wakeupCalled |
| Constructor Summary | |
|---|---|
AprIoProcessor(java.util.concurrent.Executor executor)
Create a new instance of AprIoProcessor with a given Exector for
handling I/Os events. |
|
| Method Summary | |
|---|---|
protected java.util.Iterator<AprSession> |
allSessions()
|
protected void |
destroy(AprSession session)
|
protected void |
doDispose()
|
protected SessionState |
getState(AprSession session)
|
protected void |
init(AprSession session)
|
protected boolean |
isBrokenConnection()
|
protected boolean |
isInterestedInRead(AprSession session)
|
protected boolean |
isInterestedInWrite(AprSession session)
|
protected boolean |
isReadable(AprSession session)
|
protected boolean |
isSelectorEmpty()
|
protected boolean |
isWritable(AprSession session)
|
protected int |
read(AprSession session,
IoBuffer buffer)
|
protected void |
registerNewSelector()
|
protected int |
select()
|
protected int |
select(long timeout)
|
protected java.util.Iterator<AprSession> |
selectedSessions()
|
protected void |
setInterestedInRead(AprSession session,
boolean isInterested)
|
protected void |
setInterestedInWrite(AprSession session,
boolean isInterested)
|
protected int |
transferFile(AprSession session,
FileRegion region,
int length)
|
protected void |
wakeup()
|
protected int |
write(AprSession session,
IoBuffer buf,
int length)
|
| Methods inherited from class org.apache.mina.core.polling.AbstractPollingIoProcessor |
|---|
add, dispose, flush, isDisposed, isDisposing, remove, updateTrafficControl, updateTrafficMask |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AprIoProcessor(java.util.concurrent.Executor executor)
AprIoProcessor with a given Exector for
handling I/Os events.
executor - the Executor for handling I/O events| Method Detail |
|---|
protected void doDispose()
doDispose in class AbstractPollingIoProcessor<AprSession>
protected int select()
throws java.lang.Exception
select in class AbstractPollingIoProcessor<AprSession>java.lang.Exception
protected int select(long timeout)
throws java.lang.Exception
select in class AbstractPollingIoProcessor<AprSession>java.lang.Exceptionprotected boolean isSelectorEmpty()
isSelectorEmpty in class AbstractPollingIoProcessor<AprSession>protected void wakeup()
wakeup in class AbstractPollingIoProcessor<AprSession>protected java.util.Iterator<AprSession> allSessions()
allSessions in class AbstractPollingIoProcessor<AprSession>protected java.util.Iterator<AprSession> selectedSessions()
selectedSessions in class AbstractPollingIoProcessor<AprSession>
protected void init(AprSession session)
throws java.lang.Exception
init in class AbstractPollingIoProcessor<AprSession>java.lang.Exception
protected void destroy(AprSession session)
throws java.lang.Exception
destroy in class AbstractPollingIoProcessor<AprSession>java.lang.Exceptionprotected SessionState getState(AprSession session)
getState in class AbstractPollingIoProcessor<AprSession>protected boolean isReadable(AprSession session)
isReadable in class AbstractPollingIoProcessor<AprSession>protected boolean isWritable(AprSession session)
isWritable in class AbstractPollingIoProcessor<AprSession>protected boolean isInterestedInRead(AprSession session)
isInterestedInRead in class AbstractPollingIoProcessor<AprSession>protected boolean isInterestedInWrite(AprSession session)
isInterestedInWrite in class AbstractPollingIoProcessor<AprSession>
protected void setInterestedInRead(AprSession session,
boolean isInterested)
throws java.lang.Exception
setInterestedInRead in class AbstractPollingIoProcessor<AprSession>java.lang.Exception
protected void setInterestedInWrite(AprSession session,
boolean isInterested)
throws java.lang.Exception
setInterestedInWrite in class AbstractPollingIoProcessor<AprSession>java.lang.Exception
protected int read(AprSession session,
IoBuffer buffer)
throws java.lang.Exception
read in class AbstractPollingIoProcessor<AprSession>java.lang.Exception
protected int write(AprSession session,
IoBuffer buf,
int length)
throws java.lang.Exception
write in class AbstractPollingIoProcessor<AprSession>java.lang.Exception
protected int transferFile(AprSession session,
FileRegion region,
int length)
throws java.lang.Exception
transferFile in class AbstractPollingIoProcessor<AprSession>java.lang.Exceptionprotected void registerNewSelector()
registerNewSelector in class AbstractPollingIoProcessor<AprSession>
protected boolean isBrokenConnection()
throws java.io.IOException
isBrokenConnection in class AbstractPollingIoProcessor<AprSession>java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||