Class Tl1ClientImpl

  • All Implemented Interfaces:
    Tl1Client

    public class Tl1ClientImpl
    extends java.lang.Object
    implements Tl1Client
    Default Implementation of the Tl1Client API.
    Version:
    $Id: $
    Author:
    David Hustace
    • Constructor Detail

      • Tl1ClientImpl

        public Tl1ClientImpl()

        Constructor for Tl1ClientImpl.

      • Tl1ClientImpl

        public Tl1ClientImpl​(java.util.concurrent.BlockingQueue<Tl1AutonomousMessage> queue,
                             Tl1Element element)
                      throws java.lang.InstantiationException,
                             java.lang.IllegalAccessException,
                             java.lang.ClassNotFoundException

        Constructor for Tl1ClientImpl.

        Parameters:
        queue - a BlockingQueue object.
        element - a Tl1Element object.
        Throws:
        java.lang.InstantiationException - if any.
        java.lang.IllegalAccessException - if any.
        java.lang.ClassNotFoundException - if any.
    • Method Detail

      • start

        public void start()

        start

        Specified by:
        start in interface Tl1Client
      • stop

        public void stop()

        stop

        Specified by:
        stop in interface Tl1Client
      • getHost

        public java.lang.String getHost()

        getHost

        Specified by:
        getHost in interface Tl1Client
        Returns:
        a String object.
      • setHost

        public void setHost​(java.lang.String host)

        setHost

        Specified by:
        setHost in interface Tl1Client
        Parameters:
        host - a String object.
      • getPort

        public int getPort()

        getPort

        Specified by:
        getPort in interface Tl1Client
        Returns:
        a int.
      • setPort

        public void setPort​(int port)

        setPort

        Specified by:
        setPort in interface Tl1Client
        Parameters:
        port - a int.
      • getReconnectionDelay

        public long getReconnectionDelay()

        getReconnectionDelay

        Specified by:
        getReconnectionDelay in interface Tl1Client
        Returns:
        a long.
      • setReconnectionDelay

        public void setReconnectionDelay​(long reconnectionDelay)

        setReconnectionDelay

        Specified by:
        setReconnectionDelay in interface Tl1Client
        Parameters:
        reconnectionDelay - a long.
      • setTl1Queue

        public void setTl1Queue​(java.util.concurrent.BlockingQueue<Tl1AutonomousMessage> tl1Queue)

        setTl1Queue

        Specified by:
        setTl1Queue in interface Tl1Client
        Parameters:
        tl1Queue - a BlockingQueue object.
      • setStarted

        public void setStarted​(boolean started)

        setStarted

        Parameters:
        started - a boolean.
      • isStarted

        public boolean isStarted()

        isStarted

        Returns:
        a boolean.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object