Examples of appendMessage()


Examples of com.alibaba.rocketmq.store.MapedFile.appendMessage()

        // Producer Group Hashcode
        this.byteBufferAppend.putInt(groupHashCode);
        // Transaction State
        this.byteBufferAppend.putInt(MessageSysFlag.TransactionPreparedType);

        return mapedFile.appendMessage(this.byteBufferAppend.array());
    }


    private void recoverStateTableNormal() {
        final List<MapedFile> mapedFiles = this.tranStateTable.getMapedFiles();
View Full Code Here

Examples of com.icegreen.greenmail.store.MailFolder.appendMessage()

        } catch (FolderException e) {
            e.setResponseCode("TRYCREATE");
            throw e;
        }

        folder.appendMessage(message, flags, datetime);

        session.unsolicitedResponses(response);
        response.commandComplete(this);
    }
View Full Code Here

Examples of entagged.listing.gui.ListingProgressDialog.appendMessage()

      }

    });
    try {
      handleChildren(lpd, treemodel, currentParent);
      lpd.appendMessage(LangageManager.getProperty("tagrename.prune"));
      pruneStruct.prune();
    } catch (RuntimeException re) {
      lpd.dispose();
      throw re;
    } finally {
View Full Code Here

Examples of gov.nist.scap.xccdf.UncheckedRuleResult.appendMessage()

  /**
   * @return the action
   */
  public RuleResult getRuleResult() {
    UncheckedRuleResult retval = new UncheckedRuleResult(rule, result);
    retval.appendMessage(new Message(severity, getLocalizedMessage()));
    return retval;
  }
}
View Full Code Here

Examples of net.rim.blackberry.api.mail.Folder.appendMessage()

            int priority = _outer.getPriority();
            byte p = MessageUtility.JSPriorityToMessagePriority( priority );
            _message.setPriority( p );

            Folder folder = _message.getFolder();
            folder.appendMessage( _message );

            // from and replyTo
            String from = _serviceConfig.getEmailAddress();
            _outer.setValue( MessageObject.FIELD_FROM, from );
            _outer.setValue( MessageObject.FIELD_REPLYTO, from );
View Full Code Here

Examples of net.rim.blackberry.api.mail.Folder.appendMessage()

                    // FIXME: is it possible to store a message in the trash?
                    //        Shall we just silently discard this?
                    break;
            }
            // Save the message to the correct folder
            folder.appendMessage(msg);
            // XXX: why this conversion?
            Integer msgId = new Integer(msg.getMessageId());
            String key = new String(type + "/" + msgId.toString());
            // Set record key
            record.setKey(key);
View Full Code Here

Examples of nu.fw.jeti.plugins.groupchat.GroupchatWindow.appendMessage()

            if(gcw==null)return;
            for(Iterator i = presences.values().iterator();i.hasNext();)
            {
              gcw.presenceChanged((Presence)i.next());
            }
            if(subject!=null)gcw.appendMessage(subject);
            messages.releaseMessages(gcw);
            groupchatWindow = gcw;
            deIconify();
            addWindowStateListener(gcw);
          }
View Full Code Here

Examples of org.apache.james.mailbox.MessageManager.appendMessage()

                    MessageResult messageResult = messageResultIterator.next();
                    InputStreamContent content = (InputStreamContent) messageResult.getFullContent();

                    dstMailboxManager.startProcessingRequest(dstMailboxSession);
                    dstMessageManager.appendMessage(content.getInputStream(), messageResult.getInternalDate(), dstMailboxSession, messageResult.getFlags().contains(Flag.RECENT), messageResult.getFlags());
                    dstMailboxManager.endProcessingRequest(dstMailboxSession);
                    log.info("Message #" + j + " appended in destination mailbox with path=" + mailboxPath.toString());
                    j++;

                }
View Full Code Here

Examples of org.apache.james.mailbox.MessageManager.appendMessage()

    private void createMailbox(MailboxSession mailboxSession, MailboxPath mailboxPath) throws MailboxException, UnsupportedEncodingException {
        getMockMailboxManager().startProcessingRequest(mailboxSession);
        getMockMailboxManager().createMailbox(mailboxPath, mailboxSession);
        MessageManager messageManager = getMockMailboxManager().getMailbox(mailboxPath, mailboxSession);
        for (int j=0; j < MESSAGE_PER_MAILBOX_COUNT; j++) {
            messageManager.appendMessage(new ByteArrayInputStream(MockMail.MAIL_TEXT_PLAIN.getBytes("UTF-8")),
                    Calendar.getInstance().getTime(),
                    mailboxSession,
                    true,
                    new Flags(Flags.Flag.RECENT));
        }
View Full Code Here

Examples of org.apache.james.mailbox.MessageManager.appendMessage()

                    try {
                        MailboxSession session = getMailboxManager().createSystemSession("test", LoggerFactory.getLogger("Test"));

                        getMailboxManager().startProcessingRequest(session);
                        MessageManager m = getMailboxManager().getMailbox(path, session);
                        Long uid =  m.appendMessage(new ByteArrayInputStream("Subject: test\r\n\r\ntestmail".getBytes()), new Date(), session, false, new Flags());
                        System.out.println("Append message with uid=" + uid);
                        if (uids.put(uid, new Object()) != null) {
                            fail.set(true);
                        }
                        getMailboxManager().endProcessingRequest(session);
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.