public ExecutorService getExecutorService() { return context.getExecutorService(); }
public ExecutorService getExecutorService() { return context.getExecutorService(); }
/** * Returns the singleton instance of ConnectionHub. * * @deprecated Use {@link HapiContext#getConnectionHub()} to get an instance of ConnectionHub. * See <a href="http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/SendAndReceiveAMessage.html">this example page</a> for an example of how to use ConnectionHub. */ public static ConnectionHub getInstance(HapiContext context) { if (instance == null || context.getExecutorService().isShutdown()) { instance = new ConnectionHub(context); } return instance; }
/** * Returns the singleton instance of ConnectionHub. * * @deprecated Use {@link HapiContext#getConnectionHub()} to get an instance of ConnectionHub. * See <a href="http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/SendAndReceiveAMessage.html">this example page</a> for an example of how to use ConnectionHub. */ public static ConnectionHub getInstance(HapiContext context) { if (instance == null || context.getExecutorService().isShutdown()) { instance = new ConnectionHub(context); } return instance; }
/** * @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; } }
/** * @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; } }
@Override protected Connection open(ConnectionData connectionData) throws Exception { return ConnectionFactory .open(connectionData, getHapiContext().getExecutorService()); }
/** * @param theHapiContext HapiContext */ public HL7Service(HapiContext theHapiContext) { this(theHapiContext.getGenericParser(), theHapiContext.getLowerLayerProtocol(), theHapiContext.getExecutorService()); }
@Override protected Connection open(ConnectionData connectionData) throws Exception { return ConnectionFactory .open(connectionData, getHapiContext().getExecutorService()); }
/** * @param theHapiContext HapiContext */ public HL7Service(HapiContext theHapiContext) { this(theHapiContext.getGenericParser(), theHapiContext.getLowerLayerProtocol(), theHapiContext.getExecutorService()); }