twcsckernel.clientKernel.utils
Class ConnectionSustainer

java.lang.Object
  extended by twcsckernel.clientKernel.utils.ConnectionSustainer

public class ConnectionSustainer
extends java.lang.Object

Klasa odpowiedzialna za podtrzymanie polączenia, tak, żeby user nie został wylogowany przez UserGarbageCollector na serwerze.

Author:
VMD Group

Constructor Summary
ConnectionSustainer()
           
 
Method Summary
 void disable()
          Metoda wyłącza działanie Sustainera
 void enable()
          Metoda włącza działanie Sustainera o ile ustanowione są pola interval i user
 void setInterval(long interval)
          Metoda ustawia interwał czasowy co który bedzie następowało wywołanie ping
 void setUser(User userObject)
          Metoda ustawiająca obiekt użytkownika na serwerze na ktorym bedzie wywoływana metoda ping()
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionSustainer

public ConnectionSustainer()
Method Detail

setUser

public void setUser(User userObject)
Metoda ustawiająca obiekt użytkownika na serwerze na ktorym bedzie wywoływana metoda ping()

Parameters:
userObject - obiekt użytkownika na serwerze

disable

public void disable()
Metoda wyłącza działanie Sustainera


enable

public void enable()
Metoda włącza działanie Sustainera o ile ustanowione są pola interval i user


setInterval

public void setInterval(long interval)
Metoda ustawia interwał czasowy co który bedzie następowało wywołanie ping

Parameters:
interval - - interwał czasowy w milisekundach


Copyright © 2005-2006 CS@PUT. All Rights Reserved.