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()
Connection
activate
in interface Connection
public Initiator getInitiator()
Connection
getInitiator
in interface Connection
public void close()
Connection
close
in interface Connection
public boolean isOpen()
Connection
isOpen
in interface Connection
public ExecutorService getExecutorService()
getExecutorService
in interface Connection
public InetAddress getRemoteAddress()
Connection
LazyConnection
this method may return null
.getRemoteAddress
in interface Connection
Connection.getRemotePort()
public Integer getRemotePort()
Connection
LazyConnection
this method may return null
.getRemotePort
in interface Connection
Connection.getRemoteAddress()
Copyright © 2001–2017 University Health Network. All rights reserved.