Uses of Class
org.apache.mina.transport.socket.apr.AprSession
-
Packages that use AprSession Package Description 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 Modifier and Type Method Description protected AprSession
AprSocketAcceptor. accept(IoProcessor<AprSession> processor, Long handle)
Accept a client connection for a server socket and return a newIoSession
associated with the givenIoProcessor
protected AprSession
AprSocketConnector. newSession(IoProcessor<AprSession> processor, Long handle)
Create a newIoSession
from a connected socket client handle.Methods in org.apache.mina.transport.socket.apr that return types with arguments of type AprSession Modifier and Type Method Description protected Iterator<AprSession>
AprIoProcessor. allSessions()
IoProcessor<AprSession>
AprSession. getProcessor()
protected Iterator<AprSession>
AprIoProcessor. selectedSessions()
Get anIterator
for the list ofIoSession
found selected by the last call ofAbstractPollingIoProcessor.select(long)
Methods in org.apache.mina.transport.socket.apr with parameters of type AprSession Modifier and Type Method Description protected void
AprIoProcessor. destroy(AprSession session)
Destroy the underlying client socket handleprotected SessionState
AprIoProcessor. getState(AprSession session)
Get the state of a session (One of OPENING, OPEN, CLOSING)protected void
AprIoProcessor. init(AprSession session)
protected boolean
AprIoProcessor. isInterestedInRead(AprSession session)
Tells if this session is registered for readingprotected boolean
AprIoProcessor. isInterestedInWrite(AprSession session)
Tells if this session is registered for writingprotected boolean
AprIoProcessor. isReadable(AprSession session)
Tells if the session ready for readingprotected boolean
AprIoProcessor. isWritable(AprSession session)
Tells if the session ready for writingprotected int
AprIoProcessor. read(AprSession session, IoBuffer buffer)
protected void
AprIoProcessor. setInterestedInRead(AprSession session, boolean isInterested)
Set the session to be informed when a read event should be processedprotected void
AprIoProcessor. setInterestedInWrite(AprSession session, boolean isInterested)
Set the session to be informed when a write event should be processedprotected int
AprIoProcessor. transferFile(AprSession session, FileRegion region, int length)
Write a part of a file to aIoSession
, if the underlying API isn't supporting system calls like sendfile(), you can throw aUnsupportedOperationException
so the file will be send using usualAbstractPollingIoProcessor.write(AbstractIoSession, IoBuffer, int)
call.protected int
AprIoProcessor. write(AprSession session, IoBuffer buf, int length)
Write a sequence of bytes to aIoSession
, 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 Modifier and Type Method Description protected AprSession
AprSocketAcceptor. accept(IoProcessor<AprSession> processor, Long handle)
Accept a client connection for a server socket and return a newIoSession
associated with the givenIoProcessor
protected AprSession
AprSocketConnector. newSession(IoProcessor<AprSession> processor, Long handle)
Create a newIoSession
from a connected socket client handle.Constructor parameters in org.apache.mina.transport.socket.apr with type arguments of type AprSession Constructor Description AprSocketAcceptor(Executor executor, IoProcessor<AprSession> processor)
Constructor forAprSocketAcceptor
with a givenExecutor
for handling connection events and a givenAprIoProcessor
for handling I/O events, useful for sharing the same processor and executor over multipleIoService
of the same type.AprSocketAcceptor(IoProcessor<AprSession> processor)
Constructor forAprSocketAcceptor
with default configuration but a specificAprIoProcessor
, useful for sharing the same processor over multipleIoService
of the same type.AprSocketConnector(Executor executor, IoProcessor<AprSession> processor)
Constructor forAprSocketConnector
with a givenExecutor
for handling connection events and a givenIoProcessor
for handling I/O events, useful for sharing the same processor and executor over multipleIoService
of the same type.AprSocketConnector(IoProcessor<AprSession> processor)
Constructor forAprSocketConnector
with default configuration but a specificIoProcessor
, useful for sharing the same processor over multipleIoService
of the same type.
-