Provides methods for getting MyCQClient instance and QueueSchema instance. More...
Static Public Member Functions | |
static MyCQClient | getMyCQClient () |
Get a new MyCQClient instance. | |
static QueueSchema | getQueueSchema () |
Get a new QueueSchema instance. |
Provides methods for getting MyCQClient instance and QueueSchema instance.
import mycq.*; public class ExamMyCQClient { public void sample() { // get a client instance MyCQClient client = MyCQFactory.getMyCQClient(); try { // connect to server client.connect("localhost", 3030, "root", "1234"); } catch (MyCQException ex) { System.out.println("code:" + ex.getCode() + ", message:" + ex.getMessage()); } // close client.close(); } }
static MyCQClient mycq.MyCQFactory.getMyCQClient | ( | ) | [static] |
Get a new MyCQClient instance.
static QueueSchema mycq.MyCQFactory.getQueueSchema | ( | ) | [static] |
Get a new QueueSchema instance.