public class Tl1ClientImpl extends Object implements Tl1Client
| Constructor and Description |
|---|
Tl1ClientImpl()
Constructor for Tl1ClientImpl.
|
Tl1ClientImpl(BlockingQueue<Tl1AutonomousMessage> queue,
Tl1Element element)
Constructor for Tl1ClientImpl.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getHost()
getHost
|
Tl1AutonomousMessageProcessor |
getMessageProcessor()
getMessageProcessor
|
int |
getPort()
getPort
|
long |
getReconnectionDelay()
getReconnectionDelay
|
BlockingQueue<Tl1AutonomousMessage> |
getTl1Queue()
getTl1Queue
|
boolean |
isStarted()
isStarted
|
void |
setHost(String host)
setHost
|
void |
setMessageProcessor(Tl1AutonomousMessageProcessor messageProcessor)
setMessageProcessor
|
void |
setPort(int port)
setPort
|
void |
setReconnectionDelay(long reconnectionDelay)
setReconnectionDelay
|
void |
setStarted(boolean started)
setStarted
|
void |
setTl1Queue(BlockingQueue<Tl1AutonomousMessage> tl1Queue)
setTl1Queue
|
void |
start()
start
|
void |
stop()
stop
|
String |
toString() |
public Tl1ClientImpl()
Constructor for Tl1ClientImpl.
public Tl1ClientImpl(BlockingQueue<Tl1AutonomousMessage> queue, Tl1Element element) throws InstantiationException, IllegalAccessException, ClassNotFoundException
Constructor for Tl1ClientImpl.
queue - a BlockingQueue object.element - a Tl1Element object.InstantiationException - if any.IllegalAccessException - if any.ClassNotFoundException - if any.public String getHost()
getHost
public void setHost(String host)
setHost
public void setPort(int port)
setPort
public long getReconnectionDelay()
getReconnectionDelay
getReconnectionDelay in interface Tl1Clientpublic void setReconnectionDelay(long reconnectionDelay)
setReconnectionDelay
setReconnectionDelay in interface Tl1ClientreconnectionDelay - a long.public BlockingQueue<Tl1AutonomousMessage> getTl1Queue()
getTl1Queue
getTl1Queue in interface Tl1ClientBlockingQueue object.public void setTl1Queue(BlockingQueue<Tl1AutonomousMessage> tl1Queue)
setTl1Queue
setTl1Queue in interface Tl1Clienttl1Queue - a BlockingQueue object.public Tl1AutonomousMessageProcessor getMessageProcessor()
getMessageProcessor
getMessageProcessor in interface Tl1ClientTl1AutonomousMessageProcessor object.public void setMessageProcessor(Tl1AutonomousMessageProcessor messageProcessor)
setMessageProcessor
setMessageProcessor in interface Tl1ClientmessageProcessor - a Tl1AutonomousMessageProcessor object.public void setStarted(boolean started)
setStarted
started - a boolean.public boolean isStarted()
isStarted
Copyright © 2020. All rights reserved.