/** * @since 2.2 */ public Connection attachLazily(String host, int outboundPort, int inboundPort, boolean tls) throws HL7Exception { return attach(new ConnectionData(host, outboundPort, inboundPort, getHapiContext() .getGenericParser(), getHapiContext().getLowerLayerProtocol(), tls, getHapiContext().getSocketFactory(), true)); }
/** * @since 2.2 */ public Connection attachLazily(String host, int outboundPort, int inboundPort, boolean tls) throws HL7Exception { return attach(new ConnectionData(host, outboundPort, inboundPort, getHapiContext() .getGenericParser(), getHapiContext().getLowerLayerProtocol(), tls, getHapiContext().getSocketFactory(), true)); }
/** * @deprecated default executor service is shut down automatically */ public static void shutdown() { ConnectionHub hub = getInstance(); if (DefaultExecutorService.isDefaultService(hub.getHapiContext().getExecutorService())) { hub.getHapiContext().getExecutorService().shutdown(); instance = null; } }
/** * @since 2.0 */ public Connection attach(String host, int outboundPort, int inboundPort, boolean tls) throws HL7Exception { return attach(new ConnectionData(host, outboundPort, inboundPort, getHapiContext() .getGenericParser(), getHapiContext().getLowerLayerProtocol(), tls, getHapiContext().getSocketFactory(), false)); }
/** * @since 2.0 */ public Connection attach(String host, int outboundPort, int inboundPort, boolean tls) throws HL7Exception { return attach(new ConnectionData(host, outboundPort, inboundPort, getHapiContext() .getGenericParser(), getHapiContext().getLowerLayerProtocol(), tls, getHapiContext().getSocketFactory(), false)); }
/** * @deprecated default executor service is shut down automatically */ public static void shutdown() { ConnectionHub hub = getInstance(); if (DefaultExecutorService.isDefaultService(hub.getHapiContext().getExecutorService())) { hub.getHapiContext().getExecutorService().shutdown(); instance = null; } }
/** * Returns a Connection to the given address, opening this Connection if necessary. The given * Parser will only be used if a new Connection is opened, so there is no guarantee that the * Connection returned will be using the Parser you provide. If you need explicit access to the * Parser the Connection is using, call <code>Connection.getParser()</code>. * * @since 2.2 */ public Connection attachLazily(String host, int port, boolean tls) throws HL7Exception { return attach(new ConnectionData(host, port, 0, getHapiContext().getGenericParser(), getHapiContext().getLowerLayerProtocol(), tls, getHapiContext() .getSocketFactory(), true)); }
/** * Returns a Connection to the given address, opening this Connection if necessary. The given * Parser will only be used if a new Connection is opened, so there is no guarantee that the * Connection returned will be using the Parser you provide. If you need explicit access to the * Parser the Connection is using, call <code>Connection.getParser()</code>. * * @since 2.1 */ public Connection attach(String host, int port, boolean tls) throws HL7Exception { return attach(new ConnectionData(host, port, 0, getHapiContext().getGenericParser(), getHapiContext().getLowerLayerProtocol(), tls, getHapiContext() .getSocketFactory(), false)); }
/** * Returns a Connection to the given address, opening this Connection if necessary. The given * Parser will only be used if a new Connection is opened, so there is no guarantee that the * Connection returned will be using the Parser you provide. If you need explicit access to the * Parser the Connection is using, call <code>Connection.getParser()</code>. * * @since 2.2 */ public Connection attachLazily(String host, int port, boolean tls) throws HL7Exception { return attach(new ConnectionData(host, port, 0, getHapiContext().getGenericParser(), getHapiContext().getLowerLayerProtocol(), tls, getHapiContext() .getSocketFactory(), true)); }
/** * Returns a Connection to the given address, opening this Connection if necessary. The given * Parser will only be used if a new Connection is opened, so there is no guarantee that the * Connection returned will be using the Parser you provide. If you need explicit access to the * Parser the Connection is using, call <code>Connection.getParser()</code>. * * @since 2.1 */ public Connection attach(String host, int port, boolean tls) throws HL7Exception { return attach(new ConnectionData(host, port, 0, getHapiContext().getGenericParser(), getHapiContext().getLowerLayerProtocol(), tls, getHapiContext() .getSocketFactory(), false)); }
@Override protected Connection open(ConnectionData connectionData) throws Exception { return ConnectionFactory .open(connectionData, getHapiContext().getExecutorService()); }
@Override protected Connection open(ConnectionData connectionData) throws Exception { return ConnectionFactory .open(connectionData, getHapiContext().getExecutorService()); }