Package com.hazelcast.concurrent.countdownlatch.client

Examples of com.hazelcast.concurrent.countdownlatch.client.AwaitRequest


    public ClientCountDownLatchProxy(String instanceName, String serviceName, String objectId) {
        super(instanceName, serviceName, objectId);
    }

    public boolean await(long timeout, TimeUnit unit) throws InterruptedException {
        AwaitRequest request = new AwaitRequest(getName(), getTimeInMillis(timeout, unit));
        Boolean result = invoke(request);
        return result;
    }
View Full Code Here


    }

    @Test
    public void testAwait() throws IOException {
        final SimpleClient client = getClient();
        client.send(new AwaitRequest(name, timeout));
        boolean result = (Boolean) client.receive();

        assertTrue(result);
    }
View Full Code Here

    public ClientCountDownLatchProxy(String instanceName, String serviceName, String objectId) {
        super(instanceName, serviceName, objectId);
    }

    public boolean await(long timeout, TimeUnit unit) throws InterruptedException {
        AwaitRequest request = new AwaitRequest(getName(), getTimeInMillis(timeout, unit));
        Boolean result = invoke(request);
        return result;
    }
View Full Code Here

    public ClientCountDownLatchProxy(String serviceName, String objectId) {
        super(serviceName, objectId);
    }

    public boolean await(long timeout, TimeUnit unit) throws InterruptedException {
        AwaitRequest request = new AwaitRequest(getName(), getTimeInMillis(timeout, unit));
        Boolean result = invoke(request);
        return result;
    }
View Full Code Here

TOP

Related Classes of com.hazelcast.concurrent.countdownlatch.client.AwaitRequest

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.