Uses of Class
org.apache.mina.transport.socket.apr.AprSession
Packages that use AprSession
-
Uses of AprSession in org.apache.mina.transport.socket.apr
Subclasses of AprSession in org.apache.mina.transport.socket.aprModifier and TypeClassDescription(package private) classAnIoSessionfor APR UDP datagram based session.(package private) classAnIoSessionfor APR TCP socket based session.Subclasses with type arguments of type AprSession in org.apache.mina.transport.socket.aprModifier and TypeClassDescriptionfinal classThe class in charge of processing socket level IO events for theAprSocketConnectorfinal classIoAcceptorfor APR based socket transport (TCP/IP).final classIoConnectorfor APR based socket transport (TCP/IP).Fields in org.apache.mina.transport.socket.apr with type parameters of type AprSessionModifier and TypeFieldDescriptionprivate final Map<Long, AprSession> AprIoProcessor.allSessionsprivate final Queue<AprSession> AprIoProcessor.polledSessionsprivate final IoProcessor<AprSession> AprSession.processorMethods in org.apache.mina.transport.socket.apr that return AprSessionModifier and TypeMethodDescriptionprotected 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 AprSessionModifier and TypeMethodDescriptionprotected Iterator<AprSession> AprIoProcessor.allSessions()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 AprSessionModifier and TypeMethodDescriptionprotected 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 AprSessionModifier and TypeMethodDescriptionprotected 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 AprSessionModifierConstructorDescription(package private)AprDatagramSession(IoService service, IoProcessor<AprSession> processor, long descriptor, InetSocketAddress remoteAddress) Create an instance ofAprDatagramSession.(package private)AprSession(IoService service, IoProcessor<AprSession> processor, long descriptor) Creates a new instance ofAprSession.(package private)AprSession(IoService service, IoProcessor<AprSession> processor, long descriptor, InetSocketAddress remoteAddress) Creates a new instance ofAprSession.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.(package private)AprSocketSession(IoService service, IoProcessor<AprSession> processor, long descriptor) Create an instance ofAprSocketSession.