Examples of asyncUnsubscribe()


Examples of org.apache.hedwig.client.api.Subscriber.asyncUnsubscribe()

    @Test
    public void testAsyncHubUnsubscribeWithInvalidSubscriberId() throws Exception {
        Client hubClient = new HedwigHubClient(new ClientConfiguration());
        Subscriber hubSubscriber = hubClient.getSubscriber();
        hubSubscriber.asyncUnsubscribe(getTopic(0), localSubscriberId, new TestCallback(queue), null);
        assertFalse(queue.take());
        hubClient.close();
    }

}
View Full Code Here

Examples of org.apache.hedwig.client.api.Subscriber.asyncUnsubscribe()

    @Test
    public void testAsyncHubUnsubscribeWithInvalidSubscriberId() throws Exception {
        Client hubClient = new HedwigHubClient(new ClientConfiguration());
        Subscriber hubSubscriber = hubClient.getSubscriber();
        hubSubscriber.asyncUnsubscribe(getTopic(0), localSubscriberId, new TestCallback(queue), null);
        assertFalse(queue.take());
        hubClient.close();
    }

}
View Full Code Here

Examples of org.apache.hedwig.client.api.Subscriber.asyncUnsubscribe()

    @Test
    public void testAsyncHubUnsubscribeWithInvalidSubscriberId() throws Exception {
        Client hubClient = new HedwigHubClient(new ClientConfiguration());
        Subscriber hubSubscriber = hubClient.getSubscriber();
        hubSubscriber.asyncUnsubscribe(getTopic(0), localSubscriberId, new TestCallback(queue), null);
        assertFalse(queue.take());
        hubClient.close();
    }

    @Test
View Full Code Here

Examples of org.apache.hedwig.client.api.Subscriber.asyncUnsubscribe()

    @Test
    public void testAsyncHubUnsubscribeWithInvalidSubscriberId() throws Exception {
        Client hubClient = new HedwigHubClient(new ClientConfiguration());
        Subscriber hubSubscriber = hubClient.getSubscriber();
        hubSubscriber.asyncUnsubscribe(getTopic(0), localSubscriberId, new TestCallback(queue), null);
        assertFalse(queue.take());
        hubClient.close();
    }

    @Test
View Full Code Here

Examples of org.apache.hedwig.client.api.Subscriber.asyncUnsubscribe()

    @Test(timeout=10000)
    public void testAsyncHubUnsubscribeWithInvalidSubscriberId() throws Exception {
        Client hubClient = new HedwigHubClient(new HubClientConfiguration());
        Subscriber hubSubscriber = hubClient.getSubscriber();
        hubSubscriber.asyncUnsubscribe(getTopic(0), localSubscriberId, new TestCallback(queue), null);
        assertFalse(queue.take());
        hubClient.close();
    }

    @Test(timeout=10000)
View Full Code Here

Examples of org.apache.hedwig.client.api.Subscriber.asyncUnsubscribe()

    @Test(timeout=10000)
    public void testAsyncHubUnsubscribeWithInvalidSubscriberId() throws Exception {
        Client hubClient = new HedwigHubClient(new HubClientConfiguration());
        Subscriber hubSubscriber = hubClient.getSubscriber();
        hubSubscriber.asyncUnsubscribe(getTopic(0), localSubscriberId, new TestCallback(queue), null);
        assertFalse(queue.take());
        hubClient.close();
    }

    @Test(timeout=10000)
View Full Code Here

Examples of org.apache.hedwig.client.netty.HedwigSubscriber.asyncUnsubscribe()

                        LOGGER.error("[" + myRegion + "] checking cross-region subscription for topic "
                                     + topic.toStringUtf8() + " failed (this is should not happen): ", e);
                        mcb.operationFailed(ctx, e);
                        continue;
                    }
                    sub.asyncUnsubscribe(topic, mySubId, mcb, null);
                }
            }
        });
    }
View Full Code Here

Examples of org.apache.hedwig.client.netty.HedwigSubscriber.asyncUnsubscribe()

                        LOGGER.error("[" + myRegion.toStringUtf8() + "] checking cross-region subscription for topic "
                                     + topic.toStringUtf8() + " failed (this is should not happen): ", e);
                        mcb.operationFailed(ctx, e);
                        continue;
                    }
                    sub.asyncUnsubscribe(topic, mySubId, mcb, null);
                }
            }
        });
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.