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 AprSessionAprSocketAcceptor. accept(IoProcessor<AprSession> processor, Long handle)Accept a client connection for a server socket and return a newIoSessionassociated with the givenIoProcessorprotected AprSessionAprSocketConnector. newSession(IoProcessor<AprSession> processor, Long handle)Create a newIoSessionfrom 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 anIteratorfor the list ofIoSessionfound 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 voidAprIoProcessor. destroy(AprSession session)Destroy the underlying client socket handleprotected SessionStateAprIoProcessor. getState(AprSession session)Get the state of a session (One of OPENING, OPEN, CLOSING)protected voidAprIoProcessor. init(AprSession session)protected booleanAprIoProcessor. isInterestedInRead(AprSession session)Tells if this session is registered for readingprotected booleanAprIoProcessor. isInterestedInWrite(AprSession session)Tells if this session is registered for writingprotected booleanAprIoProcessor. isReadable(AprSession session)Tells if the session ready for readingprotected booleanAprIoProcessor. isWritable(AprSession session)Tells if the session ready for writingprotected intAprIoProcessor. read(AprSession session, IoBuffer buffer)protected voidAprIoProcessor. setInterestedInRead(AprSession session, boolean isInterested)Set the session to be informed when a read event should be processedprotected voidAprIoProcessor. setInterestedInWrite(AprSession session, boolean isInterested)Set the session to be informed when a write event should be processedprotected intAprIoProcessor. 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 aUnsupportedOperationExceptionso the file will be send using usualAbstractPollingIoProcessor.write(AbstractIoSession, IoBuffer, int)call.protected intAprIoProcessor. 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 AprSessionAprSocketAcceptor. accept(IoProcessor<AprSession> processor, Long handle)Accept a client connection for a server socket and return a newIoSessionassociated with the givenIoProcessorprotected AprSessionAprSocketConnector. newSession(IoProcessor<AprSession> processor, Long handle)Create a newIoSessionfrom 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 forAprSocketAcceptorwith a givenExecutorfor handling connection events and a givenAprIoProcessorfor handling I/O events, useful for sharing the same processor and executor over multipleIoServiceof the same type.AprSocketAcceptor(IoProcessor<AprSession> processor)Constructor forAprSocketAcceptorwith default configuration but a specificAprIoProcessor, useful for sharing the same processor over multipleIoServiceof the same type.AprSocketConnector(Executor executor, IoProcessor<AprSession> processor)Constructor forAprSocketConnectorwith a givenExecutorfor handling connection events and a givenIoProcessorfor handling I/O events, useful for sharing the same processor and executor over multipleIoServiceof the same type.AprSocketConnector(IoProcessor<AprSession> processor)Constructor forAprSocketConnectorwith default configuration but a specificIoProcessor, useful for sharing the same processor over multipleIoServiceof the same type.
-