Uses of Class
org.apache.mina.transport.socket.nio.NioSession
Packages that use NioSession
Package
Description
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.nioModifier and TypeClassDescription(package private) classAnIoSessionfor datagram transport (UDP/IP).(package private) classAnIoSessionfor socket transport (TCP/IP).Subclasses with type arguments of type NioSession in org.apache.mina.transport.socket.nioModifier and TypeClassDescriptionfinal classIoConnectorfor datagram transport (UDP/IP).classA processor for incoming and outgoing data get and written on a TCP socket.classIoAcceptorfor socket transport (TCP/IP).final classIoConnectorfor socket transport (TCP/IP).Classes in org.apache.mina.transport.socket.nio that implement interfaces with type arguments of type NioSessionFields in org.apache.mina.transport.socket.nio with type parameters of type NioSessionModifier and TypeFieldDescriptionprivate final Queue<NioSession> NioDatagramAcceptor.flushingSessionsprotected final IoProcessor<NioSession> NioSession.processorThe NioSession processorMethods in org.apache.mina.transport.socket.nio that return NioSessionModifier and TypeMethodDescriptionprotected 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 NioSessionModifier and TypeMethodDescriptionprotected Iterator<NioSession> NioProcessor.allSessions()NioSession.getProcessor()protected Iterator<NioSession> NioProcessor.selectedSessions()Methods in org.apache.mina.transport.socket.nio with parameters of type NioSessionModifier and TypeMethodDescriptionvoidNioDatagramAcceptor.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.private booleanNioDatagramAcceptor.flush(NioSession session, long currentTime) 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.private booleanNioDatagramAcceptor.scheduleFlush(NioSession session) 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 NioSessionModifier and TypeMethodDescriptionprotected 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 NioSessionModifierConstructorDescriptionNioDatagramConnector(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.(package private)NioDatagramSession(IoService service, DatagramChannel channel, IoProcessor<NioSession> processor) Creates a new connector-side session instance.(package private)NioDatagramSession(IoService service, DatagramChannel channel, IoProcessor<NioSession> processor, SocketAddress remoteAddress) Creates a new acceptor-side session instance.protectedNioSession(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.