Examples of unsubscribe()


Examples of org.apache.airavata.wsmg.client.WseMsgBrokerClient.unSubscribe()

    } catch (InterruptedException ie) {

      try {
        // unsubscribe from the topic.
        client.unSubscribe(subscriptionId);
       
      } catch (MsgBrokerClientException e) {

        e.printStackTrace();
        System.out.println("unable to unsubscribe, ignoring");
View Full Code Here

Examples of org.apache.airavata.wsmg.client.WsntMsgBrokerClient.unSubscribe()

            }

            Thread.sleep(2000);

            try {
                wsntMsgBrokerClient.unSubscribe(topicSubscriptionID);
            } catch (AxisFault e) {
                e.printStackTrace();
                fail(e.getMessage());
            }
View Full Code Here

Examples of org.apache.cocoon.portal.event.EventManager.unsubscribe()

    public void dispose() {
        if ( this.manager != null ) {
            EventManager eventManager = null;
            try {
                eventManager = (EventManager)this.manager.lookup(EventManager.ROLE);
                eventManager.unsubscribe( this );
            } catch (Exception ignore) {
                // ignore
            } finally {
                this.manager.release( eventManager );
            }
View Full Code Here

Examples of org.apache.cxf.wsn.client.Subscription.unsubscribe()

        assertEquals(1, callback.notifications.size());
        NotificationMessageHolderType message = callback.notifications.get(0);
        assertEquals(WSNHelper.getWSAAddress(subscription.getEpr()),
                     WSNHelper.getWSAAddress(message.getSubscriptionReference()));

        subscription.unsubscribe();
        consumer.stop();
    }

    public void testPullPoint() throws Exception {
        PullPoint pullPoint = createPullPoint.create();
View Full Code Here

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

    public void testSyncHubUnsubscribeWithInvalidSubscriberId() throws Exception {
        Client hubClient = new HedwigHubClient(new ClientConfiguration());
        Subscriber hubSubscriber = hubClient.getSubscriber();
        boolean unsubscribeSuccess = false;
        try {
            hubSubscriber.unsubscribe(getTopic(0), localSubscriberId);
        } catch (InvalidSubscriberIdException e) {
            unsubscribeSuccess = true;
        } catch (Exception ex) {
            unsubscribeSuccess = false;
        }
View Full Code Here

Examples of org.apache.servicemix.wsn.client.Subscription.unsubscribe()

        // Wait for notification
        Thread.sleep(150);

        assertEquals(1, pullPoint.getMessages(0).size());

        subscription.unsubscribe();

        wsnBroker.notify("myTopic", new Notify());
        // Wait for notification
        Thread.sleep(150);
View Full Code Here

Examples of org.apache.servicemix.wsn.jbi.JbiNotificationBroker.unsubscribe()

        @Override
        public void deactivate() throws Exception {
            JbiNotificationBroker broker = ((WSNLifeCycle) serviceUnit.getComponent().getLifeCycle())
                    .getNotificationBroker();
            broker.unsubscribe(response.getSubscriptionReference().getAddress().getValue());
        }

        @Override
        public ExchangeProcessor getProcessor() {
            return null;
View Full Code Here

Examples of org.apache.tomcat.bayeux.ChannelImpl.unsubscribe()

                List<Channel> channels = getTomcatBayeux().getChannels();
                Iterator<Channel> it = channels.iterator();
                while (it.hasNext()) {
                    ChannelImpl ch = (ChannelImpl)it.next();
                    if (ch.matches(subscription)) {
                        ch.unsubscribe(client);
                        unsubscribed = true;
                    }
                }
            }else {
                ChannelImpl ch = (ChannelImpl)getTomcatBayeux().getChannel(subscription,true);
View Full Code Here

Examples of org.apache.vysper.xmpp.modules.extension.xep0060_pubsub.model.LeafNode.unsubscribe()

            return errorStanzaGenerator.generateNoNodeErrorStanza(sender, serverJID, stanza);
        }

        if(strSubID == null) {
            try {
                if(node.unsubscribe(subJID) == false) {
                    // has no subscription (6.2.3.2)
                    return errorStanzaGenerator.generateNoSuchSubscriberErrorStanza(sender, serverJID, stanza);
                }
            } catch(MultipleSubscriptionException e) {
                // error case 6.2.3.1
View Full Code Here

Examples of org.apache.ws.eventing.Subscription.unsubscribe()

    */
   public void unsubscribe( UnsubscribeDocument body )
   throws RemoteException
   {
      Subscription subscription = (Subscription) getResource(  );
      subscription.unsubscribe(  );
   }

   /**
    * DOCUMENT_ME
    *
 
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.