Class ClientKeepAlive

  • All Implemented Interfaces:
    java.lang.Runnable, IObservable

    public class ClientKeepAlive
    extends java.lang.Object
    implements java.lang.Runnable, IObservable
    A Runnable which keeps a Connector's server-side resources from timing out. NOTE: Upon catching an exception, the Connector is logged out.
    • Constructor Detail

      • ClientKeepAlive

        public ClientKeepAlive()
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
      • notifyLogout

        public void notifyLogout()
      • setClient

        public void setClient​(OMEROMetadataStoreClient client)
        Parameters:
        client - - OMEROMetadataStoreClient to set
      • addObserver

        public boolean addObserver​(IObserver object)
        Description copied from interface: IObservable
        Add observer for notification
        Specified by:
        addObserver in interface IObservable
        Parameters:
        object - - observer object
        Returns:
        true if added
      • deleteObserver

        public boolean deleteObserver​(IObserver object)
        Description copied from interface: IObservable
        Delete observer
        Specified by:
        deleteObserver in interface IObservable
        Parameters:
        object - - observer to delete
        Returns:
        true if deleted
      • notifyObservers

        public void notifyObservers​(ImportEvent event)
        Description copied from interface: IObservable
        Notify observers of event
        Specified by:
        notifyObservers in interface IObservable
        Parameters:
        event - - event that happened