Examples of PUBLISH


Examples of com.cxy.redisclient.integration.pubsub.Publish

import com.cxy.redisclient.integration.pubsub.Publish;
import com.cxy.redisclient.integration.pubsub.Subscribe;

public class PubSubService {
  public void publish(int id, String channel, String message){
    Publish command = new Publish(id, channel, message);
    command.execute();
  }
View Full Code Here

Examples of com.cxy.redisclient.presentation.pubsub.Publish

 
  private void publish() {
    int id = (Integer) itemsSelected[0].getData(NODE_ID);
   
    if(!openPublish.isOpen(id)){
      final Publish publish = new Publish(tabFolder_1, id);
      CTabItem  tabItem = publish.init();
      openPublish.add(publish);
      tabItem.addDisposeListener(new DisposeListener() {
        public void widgetDisposed(DisposeEvent e) {
          openPublish.remove(publish);
        }
View Full Code Here

Examples of com.google.code.lightssh.project.message.entity.Publish

  /**
   * 我的消息
   */
  public String myList( ){
    if(publish == null )
      publish = new Publish();
   
    publish.setUser( this.getLoginAccount() );
   
    if( this.page == null )
      page = new ListPage<Publish>( );
View Full Code Here

Examples of com.google.code.lightssh.project.message.entity.Publish

    if( getLoginAccount() == null ){
      return SUCCESS;
    }
   
    if(publish == null )
      publish = new Publish();
   
    publish.setUser(this.getLoginAccount());
    publish.setRead( false );
   
    if( this.page == null )
View Full Code Here

Examples of com.rabbitmq.client.impl.AMQImpl.Basic.Publish

        List<Frame> frames = new ArrayList<Frame>();
       
        byte[] contentBody = new byte[10];
        int channelNumber = 0;
       
        Publish method = new Publish(1, "test", "test", false, false);

        frames.add(method.toFrame(0));
        frames.add(Frame.fromBodyFragment(channelNumber, contentBody, 0, contentBody.length));
       
        myFrameHandler.setFrames(frames.iterator());
        try {
View Full Code Here

Examples of com.rabbitmq.client.impl.AMQImpl.Basic.Publish

        List<Frame> frames = new ArrayList<Frame>();

        byte[] contentBody = new byte[10];
        int channelNumber = 0;

        Publish method = new Publish(1, "test", "test", false, false);

        frames.add(method.toFrame(0));
        frames.add(Frame.fromBodyFragment(channelNumber, contentBody, 0, contentBody.length));

        myFrameHandler.setFrames(frames.iterator());

        try {
View Full Code Here

Examples of org.atmosphere.annotation.Publish

           
            doSuspend(entity, req, resp, resource, config, topic, timeout, scope,
                    writeEntity, listeners, true, false, useResumeAnnotation);
        }
       
        Publish publishAnnotation = ctx.getActionAnnotation(Publish.class);
        if (publishAnnotation != null) {
            view = doPublish(entity, req, config, publishAnnotation.value());
        }
       
        Resume resumeAnnotation = ctx.getActionAnnotation(Resume.class);
        if (resumeAnnotation != null) {
            //TODO suspendTimeout not used
View Full Code Here

Examples of org.fusesource.mqtt.codec.PUBLISH

    MessageAck createMessageAck(MessageDispatch md) {
        return new MessageAck(md, MessageAck.STANDARD_ACK_TYPE, 1);
    }

    PUBLISH createPublish(ActiveMQMessage message) throws DataFormatException, IOException, JMSException {
        PUBLISH publish = protocolConverter.convertMessage(message);
        if (publish.qos().ordinal() > this.qos.ordinal()) {
            publish.qos(this.qos);
        }
        return publish;
    }
View Full Code Here

Examples of org.fusesource.mqtt.codec.PUBLISH

            case UNSUBSCRIBE.TYPE: {
                onUnSubscribe(new UNSUBSCRIBE().decode(frame));
                break;
            }
            case PUBLISH.TYPE: {
                onMQTTPublish(new PUBLISH().decode(frame));
                break;
            }
            case PUBACK.TYPE: {
                onMQTTPubAck(new PUBACK().decode(frame));
                break;
View Full Code Here

Examples of org.fusesource.mqtt.codec.PUBLISH

        } else if (command.isMessageDispatch()) {
            MessageDispatch md = (MessageDispatch) command;
            MQTTSubscription sub = subscriptionsByConsumerId.get(md.getConsumerId());
            if (sub != null) {
                MessageAck ack = sub.createMessageAck(md);
                PUBLISH publish = sub.createPublish((ActiveMQMessage) md.getMessage());
                if (ack != null && sub.expectAck(publish)) {
                    synchronized (consumerAcks) {
                        consumerAcks.put(publish.messageId(), ack);
                    }
                }
                getMQTTTransport().sendToMQTT(publish.encode());
                if (ack != null && !sub.expectAck(publish)) {
                    getMQTTTransport().sendToActiveMQ(ack);
                }
            }
        } else if (command.getDataStructureType() == ConnectionError.DATA_STRUCTURE_TYPE) {
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.