|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use AprSession | |
---|---|
org.apache.mina.transport.socket.apr |
Uses of AprSession in org.apache.mina.transport.socket.apr |
---|
Methods in org.apache.mina.transport.socket.apr that return AprSession | |
---|---|
protected AprSession |
AprSocketAcceptor.accept(IoProcessor<AprSession> processor,
java.lang.Long handle)
Accept a client connection for a server socket and return a new IoSession
associated with the given IoProcessor |
protected AprSession |
AprSocketConnector.newSession(IoProcessor<AprSession> processor,
java.lang.Long handle)
Create a new IoSession from a connected socket client handle. |
Methods in org.apache.mina.transport.socket.apr that return types with arguments of type AprSession | |
---|---|
protected java.util.Iterator<AprSession> |
AprIoProcessor.allSessions()
Get an Iterator for the list of IoSession polled by this
IoProcessor |
IoProcessor<AprSession> |
AprSession.getProcessor()
TODO Add method documentation |
protected java.util.Iterator<AprSession> |
AprIoProcessor.selectedSessions()
Get an Iterator for the list of IoSession found selected
by the last call of {@link AbstractPollingIoProcessor#select(int) |
Methods in org.apache.mina.transport.socket.apr with parameters of type AprSession | |
---|---|
protected void |
AprIoProcessor.destroy(AprSession session)
Destroy the underlying client socket handle |
protected SessionState |
AprIoProcessor.getState(AprSession session)
Get the state of a session (preparing, open, closed) |
protected void |
AprIoProcessor.init(AprSession session)
|
protected boolean |
AprIoProcessor.isInterestedInRead(AprSession session)
is this session registered for reading |
protected boolean |
AprIoProcessor.isInterestedInWrite(AprSession session)
is this session registered for writing |
protected boolean |
AprIoProcessor.isReadable(AprSession session)
Is the session ready for reading |
protected boolean |
AprIoProcessor.isWritable(AprSession session)
Is the session ready for writing |
protected int |
AprIoProcessor.read(AprSession session,
IoBuffer buffer)
Reads a sequence of bytes from a IoSession into the given IoBuffer . |
protected void |
AprIoProcessor.setInterestedInRead(AprSession session,
boolean isInterested)
register a session for reading |
protected void |
AprIoProcessor.setInterestedInWrite(AprSession session,
boolean isInterested)
register a session for writing |
protected int |
AprIoProcessor.transferFile(AprSession session,
FileRegion region,
int length)
Write a part of a file to a IoSession , if the underlying API isn't supporting
system calls like sendfile(), you can throw a UnsupportedOperationException so
the file will be send using usual AbstractPollingIoProcessor.write(AbstractIoSession, IoBuffer, int) call. |
protected int |
AprIoProcessor.write(AprSession session,
IoBuffer buf,
int length)
Write a sequence of bytes to a IoSession , means to be called when a session
was found ready for writing. |
Method parameters in org.apache.mina.transport.socket.apr with type arguments of type AprSession | |
---|---|
protected AprSession |
AprSocketAcceptor.accept(IoProcessor<AprSession> processor,
java.lang.Long handle)
Accept a client connection for a server socket and return a new IoSession
associated with the given IoProcessor |
protected AprSession |
AprSocketConnector.newSession(IoProcessor<AprSession> processor,
java.lang.Long handle)
Create a new IoSession from a connected socket client handle. |
Constructor parameters in org.apache.mina.transport.socket.apr with type arguments of type AprSession | |
---|---|
AprSocketAcceptor(java.util.concurrent.Executor executor,
IoProcessor<AprSession> processor)
Constructor for AprSocketAcceptor with a given Executor for handling
connection events and a given AprIoProcessor for handling I/O events, useful for
sharing the same processor and executor over multiple IoService of the same type. |
|
AprSocketAcceptor(IoProcessor<AprSession> processor)
Constructor for AprSocketAcceptor with default configuration but a
specific AprIoProcessor , useful for sharing the same processor over multiple
IoService of the same type. |
|
AprSocketConnector(java.util.concurrent.Executor executor,
IoProcessor<AprSession> processor)
Constructor for AprSocketConnector with a given Executor for handling
connection events and a given IoProcessor for handling I/O events, useful for sharing
the same processor and executor over multiple IoService of the same type. |
|
AprSocketConnector(IoProcessor<AprSession> processor)
Constructor for AprSocketConnector with default configuration but a
specific IoProcessor , useful for sharing the same processor over multiple
IoService of the same type. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |