Package com.hazelcast.queue.impl.client

Examples of com.hazelcast.queue.impl.client.IsEmptyRequest


        Integer result = invoke(request);
        return result;
    }

    public boolean isEmpty() {
        IsEmptyRequest request = new IsEmptyRequest(name);
        Boolean result = invoke(request);
        return result;
    }
View Full Code Here


            }
        };
        constructors[IS_EMPTY] = new ConstructorFunction<Integer, Portable>() {
            @Override
            public Portable createNew(Integer arg) {
                return new IsEmptyRequest();
            }
        };

        return new ArrayPortableFactory(constructors);
    }
View Full Code Here

    @Test
    public void testIsEmpty() throws IOException {
        final IQueue queue = getQueue();

        final SimpleClient client = getClient();
        client.send(new IsEmptyRequest(queueName));
        boolean result = (Boolean) client.receive();
        assertEquals(0, queue.size());
        assertTrue(result);
    }
View Full Code Here

TOP

Related Classes of com.hazelcast.queue.impl.client.IsEmptyRequest

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.