org.apache.mina.common
Class AbstractIoService

java.lang.Object
  extended by org.apache.mina.common.AbstractIoService
All Implemented Interfaces:
IoService
Direct Known Subclasses:
AbstractIoAcceptor, AbstractIoConnector

public abstract class AbstractIoService
extends Object
implements IoService

Base implementation of IoServices.

Version:
$Rev: 607163 $, $Date: 2007-12-28 04:20:07 +0100 (Fri, 28 Dec 2007) $
Author:
The Apache MINA Project (dev@mina.apache.org)

Nested Class Summary
protected static class AbstractIoService.ServiceOperationFuture
           
 
Constructor Summary
protected AbstractIoService(IoSessionConfig sessionConfig)
           
 
Method Summary
 void addListener(IoServiceListener listener)
          Adds an IoServiceListener that listens any events related with this service.
 Set<WriteFuture> broadcast(Object message)
          Writes the specified message to all the IoSessions managed by this service.
protected  void decreaseScheduledWriteMessages()
           
 void dispose()
          Releases any resources allocated by this service.
protected abstract  IoFuture dispose0()
          Implement this method to release any acquired resources.
protected  void finishSessionInitialization(IoSession session, IoFuture future, IoSessionInitializer sessionInitializer)
           
protected  void finishSessionInitialization0(IoSession session, IoFuture future)
          Implement this method to perform additional tasks required for session initialization.
 long getActivationTime()
          Returns the time when this service was activated.
 int getBothIdleCount()
          Returns the number of the fired continuous serviceIdle events for IdleStatus.BOTH_IDLE.
 int getBothIdleTime()
          Returns idle time for IdleStatus.BOTH_IDLE in seconds.
 long getBothIdleTimeInMillis()
          Returns idle time for IdleStatus.BOTH_IDLE in milliseconds.
 long getCumulativeManagedSessionCount()
          Returns the cumulative number of sessions which were managed (or are being managed) by this service, which means 'currently managed session count + closed session count'.
 DefaultIoFilterChainBuilder getFilterChain()
          A shortcut for ( ( DefaultIoFilterChainBuilder ) IoService.getFilterChainBuilder() ).
 IoFilterChainBuilder getFilterChainBuilder()
          Returns the IoFilterChainBuilder which will build the IoFilterChain of all IoSessions which is created by this service.
 IoHandler getHandler()
          Returns the handler which will handle all connections managed by this service.
 int getIdleCount(IdleStatus status)
          Returns the number of the fired continuous serviceIdle events for the specified IdleStatus.
 int getIdleTime(IdleStatus status)
          Returns idle time for the specified type of idleness in seconds.
 long getIdleTimeInMillis(IdleStatus status)
          Returns idle time for the specified type of idleness in milliseconds.
 int getLargestManagedSessionCount()
          Returns the maximum number of sessions which were being managed at the same time.
 double getLargestReadBytesThroughput()
          Returns the maximum of the readBytesThroughput.
 double getLargestReadMessagesThroughput()
          Returns the maximum of the readMessagesThroughput.
 double getLargestWrittenBytesThroughput()
          Returns the maximum of the writtenBytesThroughput.
 double getLargestWrittenMessagesThroughput()
          Returns the maximum of the writtenMessagesThroughput.
 long getLastBothIdleTime()
          Returns the time in milliseconds when the last serviceIdle event is fired for IdleStatus.BOTH_IDLE.
 long getLastIdleTime(IdleStatus status)
          Returns the time in milliseconds when the last serviceIdle event is fired for the specified IdleStatus.
 long getLastIoTime()
          Returns the time in millis when I/O occurred lastly.
 long getLastReaderIdleTime()
          Returns the time in milliseconds when the last serviceIdle event is fired for IdleStatus.READER_IDLE.
 long getLastReadTime()
          Returns the time in millis when read operation occurred lastly.
 long getLastWriterIdleTime()
          Returns the time in milliseconds when the last serviceIdle event is fired for IdleStatus.WRITER_IDLE.
 long getLastWriteTime()
          Returns the time in millis when write operation occurred lastly.
protected  IoServiceListenerSupport getListeners()
           
 int getManagedSessionCount()
          Returns the number of all sessions which are currently managed by this service.
 Set<IoSession> getManagedSessions()
          Returns all sessions which are currently managed by this service.
 long getReadBytes()
          Returns the number of bytes read by this service
 double getReadBytesThroughput()
          Returns the number of read bytes per second.
 int getReaderIdleCount()
          Returns the number of the fired continuous serviceIdle events for IdleStatus.READER_IDLE.
 int getReaderIdleTime()
          Returns idle time for IdleStatus.READER_IDLE in seconds.
 long getReaderIdleTimeInMillis()
          Returns idle time for IdleStatus.READER_IDLE in milliseconds.
 long getReadMessages()
          Returns the number of messages this services has read
 double getReadMessagesThroughput()
          Returns the number of read messages per second.
 long getScheduledWriteBytes()
          Returns the number of bytes scheduled to be written
 long getScheduledWriteMessages()
          Returns the number of messages scheduled to be written
 IoSessionConfig getSessionConfig()
          Returns the default configuration of the new IoSessions created by this service.
 IoSessionDataStructureFactory getSessionDataStructureFactory()
          Returns the IoSessionDataStructureFactory that provides related data structures for a new session created by this service.
 int getThroughputCalculationInterval()
          Returns the interval (seconds) between each throughput calculation.
 long getThroughputCalculationIntervalInMillis()
          Returns the interval (milliseconds) between each throughput calculation.
 int getWriterIdleCount()
          Returns the number of the fired continuous serviceIdle events for IdleStatus.WRITER_IDLE.
 int getWriterIdleTime()
          Returns idle time for IdleStatus.WRITER_IDLE in seconds.
 long getWriterIdleTimeInMillis()
          Returns idle time for IdleStatus.WRITER_IDLE in milliseconds.
 long getWrittenBytes()
          Returns the number of bytes written out by this service
 double getWrittenBytesThroughput()
          Returns the number of written bytes per second.
 long getWrittenMessages()
          Returns the number of messages this service has written
 double getWrittenMessagesThroughput()
          Returns the number of written messages per second.
protected  void increaseReadBytes(long increment, long currentTime)
           
protected  void increaseReadMessages(long currentTime)
           
protected  void increaseScheduledWriteBytes(long increment)
           
protected  void increaseScheduledWriteMessages()
           
protected  void increaseWrittenBytes(long increment, long currentTime)
           
protected  void increaseWrittenMessages(long currentTime)
           
 boolean isActive()
          Returns a value of whether or not this service is active
 boolean isBothIdle()
          Returns true if this service is IdleStatus.BOTH_IDLE.
 boolean isDisposed()
          Returns true if and if only all resources of this processor have been disposed.
 boolean isDisposing()
          Returns true if and if only IoService.dispose() method has been called.
 boolean isIdle(IdleStatus status)
          Returns true if this service is idle for the specified IdleStatus.
 boolean isReaderIdle()
          Returns true if this service is IdleStatus.READER_IDLE.
 boolean isWriterIdle()
          Returns true if this service is IdleStatus.WRITER_IDLE.
protected  void notifyIdleness(long currentTime)
           
 void removeListener(IoServiceListener listener)
          Removed an existing IoServiceListener that listens any events related with this service.
 void setBothIdleTime(int idleTime)
          Sets idle time for IdleStatus.WRITER_IDLE in seconds.
 void setFilterChainBuilder(IoFilterChainBuilder builder)
          Sets the IoFilterChainBuilder which will build the IoFilterChain of all IoSessions which is created by this service.
 void setHandler(IoHandler handler)
          Sets the handler which will handle all connections managed by this service.
 void setIdleTime(IdleStatus status, int idleTime)
          Sets idle time for the specified type of idleness in seconds.
protected  void setLastReadTime(long lastReadTime)
           
protected  void setLastWriteTime(long lastWriteTime)
           
 void setReaderIdleTime(int idleTime)
          Sets idle time for IdleStatus.READER_IDLE in seconds.
 void setSessionDataStructureFactory(IoSessionDataStructureFactory sessionDataStructureFactory)
          Sets the IoSessionDataStructureFactory that provides related data structures for a new session created by this service.
 void setThroughputCalculationInterval(int throughputCalculationInterval)
          Sets the interval (seconds) between each throughput calculation.
 void setWriterIdleTime(int idleTime)
          Sets idle time for IdleStatus.WRITER_IDLE in seconds.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.mina.common.IoService
getTransportMetadata
 

Constructor Detail

AbstractIoService

protected AbstractIoService(IoSessionConfig sessionConfig)
Method Detail

getFilterChainBuilder

public final IoFilterChainBuilder getFilterChainBuilder()
Description copied from interface: IoService
Returns the IoFilterChainBuilder which will build the IoFilterChain of all IoSessions which is created by this service. The default value is an empty DefaultIoFilterChainBuilder.

Specified by:
getFilterChainBuilder in interface IoService

setFilterChainBuilder

public final void setFilterChainBuilder(IoFilterChainBuilder builder)
Description copied from interface: IoService
Sets the IoFilterChainBuilder which will build the IoFilterChain of all IoSessions which is created by this service. If you specify null this property will be set to an empty DefaultIoFilterChainBuilder.

Specified by:
setFilterChainBuilder in interface IoService

getFilterChain

public final DefaultIoFilterChainBuilder getFilterChain()
Description copied from interface: IoService
A shortcut for ( ( DefaultIoFilterChainBuilder ) IoService.getFilterChainBuilder() ). Please note that the returned object is not a real IoFilterChain but a DefaultIoFilterChainBuilder. Modifying the returned builder won't affect the existing IoSessions at all, because IoFilterChainBuilders affect only newly created IoSessions.

Specified by:
getFilterChain in interface IoService

addListener

public final void addListener(IoServiceListener listener)
Description copied from interface: IoService
Adds an IoServiceListener that listens any events related with this service.

Specified by:
addListener in interface IoService

removeListener

public final void removeListener(IoServiceListener listener)
Description copied from interface: IoService
Removed an existing IoServiceListener that listens any events related with this service.

Specified by:
removeListener in interface IoService

isActive

public final boolean isActive()
Description copied from interface: IoService
Returns a value of whether or not this service is active

Specified by:
isActive in interface IoService
Returns:
whether of not the service is active.

isDisposing

public final boolean isDisposing()
Description copied from interface: IoService
Returns true if and if only IoService.dispose() method has been called. Please note that this method will return true even after all the related resources are released.

Specified by:
isDisposing in interface IoService

isDisposed

public final boolean isDisposed()
Description copied from interface: IoService
Returns true if and if only all resources of this processor have been disposed.

Specified by:
isDisposed in interface IoService

dispose

public final void dispose()
Description copied from interface: IoService
Releases any resources allocated by this service. Please note that this method might block as long as there are any sessions managed by this service.

Specified by:
dispose in interface IoService

dispose0

protected abstract IoFuture dispose0()
                              throws Exception
Implement this method to release any acquired resources. This method is invoked only once by dispose().

Throws:
Exception

getManagedSessions

public final Set<IoSession> getManagedSessions()
Description copied from interface: IoService
Returns all sessions which are currently managed by this service.

Specified by:
getManagedSessions in interface IoService
Returns:
the sessions. An empty collection if there's no session.

getCumulativeManagedSessionCount

public final long getCumulativeManagedSessionCount()
Description copied from interface: IoService
Returns the cumulative number of sessions which were managed (or are being managed) by this service, which means 'currently managed session count + closed session count'.

Specified by:
getCumulativeManagedSessionCount in interface IoService

getLargestManagedSessionCount

public final int getLargestManagedSessionCount()
Description copied from interface: IoService
Returns the maximum number of sessions which were being managed at the same time.

Specified by:
getLargestManagedSessionCount in interface IoService

getManagedSessionCount

public final int getManagedSessionCount()
Description copied from interface: IoService
Returns the number of all sessions which are currently managed by this service.

Specified by:
getManagedSessionCount in interface IoService

getHandler

public final IoHandler getHandler()
Description copied from interface: IoService
Returns the handler which will handle all connections managed by this service.

Specified by:
getHandler in interface IoService

setHandler

public final void setHandler(IoHandler handler)
Description copied from interface: IoService
Sets the handler which will handle all connections managed by this service.

Specified by:
setHandler in interface IoService

getSessionConfig

public IoSessionConfig getSessionConfig()
Description copied from interface: IoService
Returns the default configuration of the new IoSessions created by this service.

Specified by:
getSessionConfig in interface IoService

getSessionDataStructureFactory

public final IoSessionDataStructureFactory getSessionDataStructureFactory()
Description copied from interface: IoService
Returns the IoSessionDataStructureFactory that provides related data structures for a new session created by this service.

Specified by:
getSessionDataStructureFactory in interface IoService

setSessionDataStructureFactory

public final void setSessionDataStructureFactory(IoSessionDataStructureFactory sessionDataStructureFactory)
Description copied from interface: IoService
Sets the IoSessionDataStructureFactory that provides related data structures for a new session created by this service.

Specified by:
setSessionDataStructureFactory in interface IoService

getReadBytes

public final long getReadBytes()
Description copied from interface: IoService
Returns the number of bytes read by this service

Specified by:
getReadBytes in interface IoService
Returns:
The number of bytes this service has read

increaseReadBytes

protected final void increaseReadBytes(long increment,
                                       long currentTime)

getReadMessages

public final long getReadMessages()
Description copied from interface: IoService
Returns the number of messages this services has read

Specified by:
getReadMessages in interface IoService
Returns:
The number of messages this services has read

increaseReadMessages

protected final void increaseReadMessages(long currentTime)

getThroughputCalculationInterval

public final int getThroughputCalculationInterval()
Description copied from interface: IoService
Returns the interval (seconds) between each throughput calculation. The default value is 3 seconds.

Specified by:
getThroughputCalculationInterval in interface IoService

setThroughputCalculationInterval

public final void setThroughputCalculationInterval(int throughputCalculationInterval)
Description copied from interface: IoService
Sets the interval (seconds) between each throughput calculation. The default value is 3 seconds.

Specified by:
setThroughputCalculationInterval in interface IoService

getThroughputCalculationIntervalInMillis

public final long getThroughputCalculationIntervalInMillis()
Description copied from interface: IoService
Returns the interval (milliseconds) between each throughput calculation. The default value is 3 seconds.

Specified by:
getThroughputCalculationIntervalInMillis in interface IoService

getReadBytesThroughput

public final double getReadBytesThroughput()
Description copied from interface: IoService
Returns the number of read bytes per second.

Specified by:
getReadBytesThroughput in interface IoService

getWrittenBytesThroughput

public final double getWrittenBytesThroughput()
Description copied from interface: IoService
Returns the number of written bytes per second.

Specified by:
getWrittenBytesThroughput in interface IoService

getReadMessagesThroughput

public final double getReadMessagesThroughput()
Description copied from interface: IoService
Returns the number of read messages per second.

Specified by:
getReadMessagesThroughput in interface IoService

getWrittenMessagesThroughput

public final double getWrittenMessagesThroughput()
Description copied from interface: IoService
Returns the number of written messages per second.

Specified by:
getWrittenMessagesThroughput in interface IoService

getLargestReadBytesThroughput

public final double getLargestReadBytesThroughput()
Description copied from interface: IoService
Returns the maximum of the readBytesThroughput.

Specified by:
getLargestReadBytesThroughput in interface IoService

getLargestWrittenBytesThroughput

public final double getLargestWrittenBytesThroughput()
Description copied from interface: IoService
Returns the maximum of the writtenBytesThroughput.

Specified by:
getLargestWrittenBytesThroughput in interface IoService

getLargestReadMessagesThroughput

public final double getLargestReadMessagesThroughput()
Description copied from interface: IoService
Returns the maximum of the readMessagesThroughput.

Specified by:
getLargestReadMessagesThroughput in interface IoService

getLargestWrittenMessagesThroughput

public final double getLargestWrittenMessagesThroughput()
Description copied from interface: IoService
Returns the maximum of the writtenMessagesThroughput.

Specified by:
getLargestWrittenMessagesThroughput in interface IoService

getScheduledWriteBytes

public final long getScheduledWriteBytes()
Description copied from interface: IoService
Returns the number of bytes scheduled to be written

Specified by:
getScheduledWriteBytes in interface IoService
Returns:
The number of bytes scheduled to be written

increaseScheduledWriteBytes

protected final void increaseScheduledWriteBytes(long increment)

getScheduledWriteMessages

public final long getScheduledWriteMessages()
Description copied from interface: IoService
Returns the number of messages scheduled to be written

Specified by:
getScheduledWriteMessages in interface IoService
Returns:
The number of messages scheduled to be written

increaseScheduledWriteMessages

protected final void increaseScheduledWriteMessages()

decreaseScheduledWriteMessages

protected final void decreaseScheduledWriteMessages()

getActivationTime

public final long getActivationTime()
Description copied from interface: IoService
Returns the time when this service was activated. It returns the last time when this service was activated if the service is not active now.

Specified by:
getActivationTime in interface IoService
Returns:
The time by using System.currentTimeMillis()

getLastIoTime

public final long getLastIoTime()
Description copied from interface: IoService
Returns the time in millis when I/O occurred lastly.

Specified by:
getLastIoTime in interface IoService

getLastReadTime

public final long getLastReadTime()
Description copied from interface: IoService
Returns the time in millis when read operation occurred lastly.

Specified by:
getLastReadTime in interface IoService

setLastReadTime

protected final void setLastReadTime(long lastReadTime)

getLastWriteTime

public final long getLastWriteTime()
Description copied from interface: IoService
Returns the time in millis when write operation occurred lastly.

Specified by:
getLastWriteTime in interface IoService

setLastWriteTime

protected final void setLastWriteTime(long lastWriteTime)

getWrittenBytes

public final long getWrittenBytes()
Description copied from interface: IoService
Returns the number of bytes written out by this service

Specified by:
getWrittenBytes in interface IoService
Returns:
The number of bytes this service has written

increaseWrittenBytes

protected final void increaseWrittenBytes(long increment,
                                          long currentTime)

getWrittenMessages

public final long getWrittenMessages()
Description copied from interface: IoService
Returns the number of messages this service has written

Specified by:
getWrittenMessages in interface IoService
Returns:
The number of messages this service has written

increaseWrittenMessages

protected final void increaseWrittenMessages(long currentTime)

getIdleTime

public final int getIdleTime(IdleStatus status)
Description copied from interface: IoService
Returns idle time for the specified type of idleness in seconds.

Specified by:
getIdleTime in interface IoService

getIdleTimeInMillis

public final long getIdleTimeInMillis(IdleStatus status)
Description copied from interface: IoService
Returns idle time for the specified type of idleness in milliseconds.

Specified by:
getIdleTimeInMillis in interface IoService

setIdleTime

public final void setIdleTime(IdleStatus status,
                              int idleTime)
Description copied from interface: IoService
Sets idle time for the specified type of idleness in seconds.

Specified by:
setIdleTime in interface IoService

isIdle

public final boolean isIdle(IdleStatus status)
Description copied from interface: IoService
Returns true if this service is idle for the specified IdleStatus.

Specified by:
isIdle in interface IoService

getIdleCount

public final int getIdleCount(IdleStatus status)
Description copied from interface: IoService
Returns the number of the fired continuous serviceIdle events for the specified IdleStatus.

If serviceIdle event is fired first after some time after I/O, idleCount becomes 1. idleCount resets to 0 if any I/O occurs again, otherwise it increases to 2 and so on if serviceIdle event is fired again without any I/O between two (or more) serviceIdle events.

Specified by:
getIdleCount in interface IoService

getLastIdleTime

public final long getLastIdleTime(IdleStatus status)
Description copied from interface: IoService
Returns the time in milliseconds when the last serviceIdle event is fired for the specified IdleStatus.

Specified by:
getLastIdleTime in interface IoService

notifyIdleness

protected final void notifyIdleness(long currentTime)

getBothIdleCount

public final int getBothIdleCount()
Description copied from interface: IoService
Returns the number of the fired continuous serviceIdle events for IdleStatus.BOTH_IDLE.

Specified by:
getBothIdleCount in interface IoService
See Also:
IoService.getIdleCount(IdleStatus)

getLastBothIdleTime

public final long getLastBothIdleTime()
Description copied from interface: IoService
Returns the time in milliseconds when the last serviceIdle event is fired for IdleStatus.BOTH_IDLE.

Specified by:
getLastBothIdleTime in interface IoService
See Also:
IoService.getLastIdleTime(IdleStatus)

getLastReaderIdleTime

public final long getLastReaderIdleTime()
Description copied from interface: IoService
Returns the time in milliseconds when the last serviceIdle event is fired for IdleStatus.READER_IDLE.

Specified by:
getLastReaderIdleTime in interface IoService
See Also:
IoService.getLastIdleTime(IdleStatus)

getLastWriterIdleTime

public final long getLastWriterIdleTime()
Description copied from interface: IoService
Returns the time in milliseconds when the last serviceIdle event is fired for IdleStatus.WRITER_IDLE.

Specified by:
getLastWriterIdleTime in interface IoService
See Also:
IoService.getLastIdleTime(IdleStatus)

getReaderIdleCount

public final int getReaderIdleCount()
Description copied from interface: IoService
Returns the number of the fired continuous serviceIdle events for IdleStatus.READER_IDLE.

Specified by:
getReaderIdleCount in interface IoService
See Also:
IoService.getIdleCount(IdleStatus)

getWriterIdleCount

public final int getWriterIdleCount()
Description copied from interface: IoService
Returns the number of the fired continuous serviceIdle events for IdleStatus.WRITER_IDLE.

Specified by:
getWriterIdleCount in interface IoService
See Also:
IoService.getIdleCount(IdleStatus)

getBothIdleTime

public final int getBothIdleTime()
Description copied from interface: IoService
Returns idle time for IdleStatus.BOTH_IDLE in seconds.

Specified by:
getBothIdleTime in interface IoService

getBothIdleTimeInMillis

public final long getBothIdleTimeInMillis()
Description copied from interface: IoService
Returns idle time for IdleStatus.BOTH_IDLE in milliseconds.

Specified by:
getBothIdleTimeInMillis in interface IoService

getReaderIdleTime

public final int getReaderIdleTime()
Description copied from interface: IoService
Returns idle time for IdleStatus.READER_IDLE in seconds.

Specified by:
getReaderIdleTime in interface IoService

getReaderIdleTimeInMillis

public final long getReaderIdleTimeInMillis()
Description copied from interface: IoService
Returns idle time for IdleStatus.READER_IDLE in milliseconds.

Specified by:
getReaderIdleTimeInMillis in interface IoService

getWriterIdleTime

public final int getWriterIdleTime()
Description copied from interface: IoService
Returns idle time for IdleStatus.WRITER_IDLE in seconds.

Specified by:
getWriterIdleTime in interface IoService

getWriterIdleTimeInMillis

public final long getWriterIdleTimeInMillis()
Description copied from interface: IoService
Returns idle time for IdleStatus.WRITER_IDLE in milliseconds.

Specified by:
getWriterIdleTimeInMillis in interface IoService

isBothIdle

public final boolean isBothIdle()
Description copied from interface: IoService
Returns true if this service is IdleStatus.BOTH_IDLE.

Specified by:
isBothIdle in interface IoService
See Also:
IoService.isIdle(IdleStatus)

isReaderIdle

public final boolean isReaderIdle()
Description copied from interface: IoService
Returns true if this service is IdleStatus.READER_IDLE.

Specified by:
isReaderIdle in interface IoService
See Also:
IoService.isIdle(IdleStatus)

isWriterIdle

public final boolean isWriterIdle()
Description copied from interface: IoService
Returns true if this service is IdleStatus.WRITER_IDLE.

Specified by:
isWriterIdle in interface IoService
See Also:
IoService.isIdle(IdleStatus)

setBothIdleTime

public final void setBothIdleTime(int idleTime)
Description copied from interface: IoService
Sets idle time for IdleStatus.WRITER_IDLE in seconds.

Specified by:
setBothIdleTime in interface IoService

setReaderIdleTime

public final void setReaderIdleTime(int idleTime)
Description copied from interface: IoService
Sets idle time for IdleStatus.READER_IDLE in seconds.

Specified by:
setReaderIdleTime in interface IoService

setWriterIdleTime

public final void setWriterIdleTime(int idleTime)
Description copied from interface: IoService
Sets idle time for IdleStatus.WRITER_IDLE in seconds.

Specified by:
setWriterIdleTime in interface IoService

broadcast

public final Set<WriteFuture> broadcast(Object message)
Description copied from interface: IoService
Writes the specified message to all the IoSessions managed by this service. This method is a convenience shortcut for IoUtil.broadcast(Object, Collection).

Specified by:
broadcast in interface IoService

getListeners

protected final IoServiceListenerSupport getListeners()

finishSessionInitialization

protected final void finishSessionInitialization(IoSession session,
                                                 IoFuture future,
                                                 IoSessionInitializer sessionInitializer)

finishSessionInitialization0

protected void finishSessionInitialization0(IoSession session,
                                            IoFuture future)
Implement this method to perform additional tasks required for session initialization. Do not call this method directly; finishSessionInitialization(IoSession, IoFuture, IoSessionInitializer) will call this method instead.



Copyright © 2004-2009 Apache MINA Project. All Rights Reserved.