com.multisoftgroup.jerry.jabber
Class IMRouter
java.lang.Object
com.multisoftgroup.jerry.jabber.IMRouter
public class IMRouter
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static IMRouter getInstance()
init
public void init(SessionsManager sessionsManager)
registerSession
public void registerSession(IMClientSession session)
unregisterSession
public void unregisterSession(IMClientSession session)
getAllRegisteredSession
public List<IMSession> getAllRegisteredSession(String name)
getRegisteredSession
public IMClientSession getRegisteredSession(String name)
route
public void route(IMSession currentSession,
Packet transit)
throws IOException
- Throws:
IOException
deliverQueueMessage
public void deliverQueueMessage(IMSession currentSession,
String username)
throws IOException
- Throws:
IOException
releaseSessions
public void releaseSessions()