Great I see something went missing: Ignite ignite = Ignition.start(); IgniteQueue queue = ignite.queue("Queue", 0, null); ignite.close();
In the queue created above I expect it to throw an exception if the queue can not be fetched, instead it is giving me a queue that is "null". Check the JavaDoc: Will get a named queue from cache and create one if it has not been created yet and cfg is not null. If queue is present already, queue properties will not be changed. Use collocation for CacheMode.PARTITIONED caches if you have lots of relatively small queues as it will make fetching, querying, and iteration a lot faster. If you have few very large queues, then you should consider turning off collocation as they simply may not fit in a single node's memory. Params: name – Name of queue. cap – Capacity of queue, 0 for unbounded queue. Ignored if cfg is null. cfg – Queue configuration if new queue should be created. Returns: Queue with given properties. Throws: org.apache.ignite.IgniteException – If queue could not be fetched or created. -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/