Uses of Class
org.apache.mina.transport.socket.nio.NioSession
-
Packages that use NioSession Package Description org.apache.mina.transport.socket.nio Socket (TCP/IP) and Datagram (UDP/IP) support based on Java NIO (New I/O) API. -
-
Uses of NioSession in org.apache.mina.transport.socket.nio
Subclasses of NioSession in org.apache.mina.transport.socket.nio Modifier and Type Class Description (package private) classNioDatagramSessionAnIoSessionfor datagram transport (UDP/IP).(package private) classNioSocketSessionAnIoSessionfor socket transport (TCP/IP).Fields in org.apache.mina.transport.socket.nio with type parameters of type NioSession Modifier and Type Field Description protected IoProcessor<NioSession>NioSession. processorThe NioSession processorMethods in org.apache.mina.transport.socket.nio that return NioSession Modifier and Type Method Description protected NioSessionNioSocketAcceptor. accept(IoProcessor<NioSession> processor, ServerSocketChannel handle)Accept a client connection for a server socket and return a newIoSessionassociated with the givenIoProcessorprotected NioSessionNioDatagramAcceptor. newSession(IoProcessor<NioSession> processor, DatagramChannel handle, SocketAddress remoteAddress)protected NioSessionNioDatagramConnector. newSession(IoProcessor<NioSession> processor, DatagramChannel handle)Create a newIoSessionfrom a connected socket client handle.protected NioSessionNioSocketConnector. newSession(IoProcessor<NioSession> processor, SocketChannel handle)Create a newIoSessionfrom a connected socket client handle.Methods in org.apache.mina.transport.socket.nio that return types with arguments of type NioSession Modifier and Type Method Description protected Iterator<NioSession>NioProcessor. allSessions()IoProcessor<NioSession>NioSession. getProcessor()protected Iterator<NioSession>NioProcessor. selectedSessions()Methods in org.apache.mina.transport.socket.nio with parameters of type NioSession Modifier and Type Method Description voidNioDatagramAcceptor. add(NioSession session)Adds the specifiedsessionto the I/O processor so that the I/O processor starts to perform any I/O operations related with thesession.protected voidNioProcessor. destroy(NioSession session)voidNioDatagramAcceptor. flush(NioSession session)Flushes the internal write request queue of the specifiedsession.protected SessionStateNioProcessor. getState(NioSession session)Get the state of a session (One of OPENING, OPEN, CLOSING)protected voidNioProcessor. init(NioSession session)protected booleanNioProcessor. isInterestedInRead(NioSession session)protected booleanNioProcessor. isInterestedInWrite(NioSession session)protected booleanNioProcessor. isReadable(NioSession session)protected booleanNioProcessor. isWritable(NioSession session)protected intNioProcessor. read(NioSession session, IoBuffer buf)voidNioDatagramAcceptor. remove(NioSession session)Removes and closes the specifiedsessionfrom the I/O processor so that the I/O processor closes the connection associated with thesessionand releases any other related resources.protected intNioDatagramAcceptor. send(NioSession session, IoBuffer buffer, SocketAddress remoteAddress)protected voidNioProcessor. setInterestedInRead(NioSession session, boolean isInterested)Set the session to be informed when a read event should be processedprotected voidNioDatagramAcceptor. setInterestedInWrite(NioSession session, boolean isInterested)protected voidNioProcessor. setInterestedInWrite(NioSession session, boolean isInterested)Set the session to be informed when a write event should be processedprotected intNioProcessor. transferFile(NioSession session, FileRegion region, int length)voidNioDatagramAcceptor. updateTrafficControl(NioSession session)Controls the traffic of the specifiedsessiondepending of theIoSession.isReadSuspended()andIoSession.isWriteSuspended()flagsvoidNioDatagramAcceptor. write(NioSession session, WriteRequest writeRequest)Writes the WriteRequest for the specifiedsession.protected intNioProcessor. write(NioSession session, IoBuffer buf, int length)Method parameters in org.apache.mina.transport.socket.nio with type arguments of type NioSession Modifier and Type Method Description protected NioSessionNioSocketAcceptor. accept(IoProcessor<NioSession> processor, ServerSocketChannel handle)Accept a client connection for a server socket and return a newIoSessionassociated with the givenIoProcessorprotected NioSessionNioDatagramAcceptor. newSession(IoProcessor<NioSession> processor, DatagramChannel handle, SocketAddress remoteAddress)protected NioSessionNioDatagramConnector. newSession(IoProcessor<NioSession> processor, DatagramChannel handle)Create a newIoSessionfrom a connected socket client handle.protected NioSessionNioSocketConnector. newSession(IoProcessor<NioSession> processor, SocketChannel handle)Create a newIoSessionfrom a connected socket client handle.Constructor parameters in org.apache.mina.transport.socket.nio with type arguments of type NioSession Constructor Description NioDatagramConnector(Class<? extends IoProcessor<NioSession>> processorClass)Constructor forNioDatagramConnectorwith default configuration with default configuration which will use a built-in thread pool executor to manage the default number of processor instances.NioDatagramConnector(Class<? extends IoProcessor<NioSession>> processorClass, int processorCount)Constructor forNioDatagramConnectorwith default configuration which will use a built-in thread pool executor to manage the given number of processor instances.NioDatagramConnector(IoProcessor<NioSession> processor)Creates a new instance.NioDatagramSession(IoService service, DatagramChannel channel, IoProcessor<NioSession> processor)Creates a new connector-side session instance.NioDatagramSession(IoService service, DatagramChannel channel, IoProcessor<NioSession> processor, SocketAddress remoteAddress)Creates a new acceptor-side session instance.NioSession(IoProcessor<NioSession> processor, IoService service, Channel channel)Creates a new instance of NioSession, with its associated IoProcessor.NioSocketAcceptor(Executor executor, IoProcessor<NioSession> processor)Constructor forNioSocketAcceptorwith 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.NioSocketAcceptor(IoProcessor<NioSession> processor)Constructor forNioSocketAcceptorwith default configuration but a specificIoProcessor, useful for sharing the same processor over multipleIoServiceof the same type.NioSocketConnector(Class<? extends IoProcessor<NioSession>> processorClass)Constructor forNioSocketConnectorwith default configuration with default configuration which will use a built-in thread pool executor to manage the default number of processor instances.NioSocketConnector(Class<? extends IoProcessor<NioSession>> processorClass, int processorCount)Constructor forNioSocketConnectorwith default configuration which will use a built-in thread pool executor to manage the given number of processor instances.NioSocketConnector(Executor executor, IoProcessor<NioSession> processor)Constructor forNioSocketConnectorwith 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.NioSocketConnector(IoProcessor<NioSession> processor)Constructor forNioSocketConnectorwith default configuration but a specificIoProcessor, useful for sharing the same processor over multipleIoServiceof the same type.NioSocketSession(IoService service, IoProcessor<NioSession> processor, SocketChannel channel)Creates a new instance of NioSocketSession.
-