public class LazyConnection extends Object implements Connection
| Constructor and Description |
|---|
LazyConnection(ca.uhn.hl7v2.app.ConnectionData data,
ExecutorService executor) |
| Modifier and Type | Method and Description |
|---|---|
void |
activate()
Activate this connection
|
void |
close()
Closes the connection
|
ExecutorService |
getExecutorService() |
Initiator |
getInitiator()
Returns an Initiator instance
|
InetAddress |
getRemoteAddress()
Returns the address on the remote end of this connection.
|
Integer |
getRemotePort()
Returns the port on the remote end of this connection.
|
boolean |
isOpen()
Returns true if this connection is open
|
public LazyConnection(ca.uhn.hl7v2.app.ConnectionData data, ExecutorService executor)
public void activate()
Connectionactivate in interface Connectionpublic Initiator getInitiator()
ConnectiongetInitiator in interface Connectionpublic void close()
Connectionclose in interface Connectionpublic boolean isOpen()
ConnectionisOpen in interface Connectionpublic ExecutorService getExecutorService()
getExecutorService in interface Connectionpublic InetAddress getRemoteAddress()
ConnectionLazyConnection this method may return null.getRemoteAddress in interface ConnectionConnection.getRemotePort()public Integer getRemotePort()
ConnectionLazyConnection this method may return null.getRemotePort in interface ConnectionConnection.getRemoteAddress()Copyright © 2001–2017 University Health Network. All rights reserved.