Package org.apache.james.mailbox.hbase.mail

Examples of org.apache.james.mailbox.hbase.mail.HBaseMailboxMapper


     * @param mailboxSession
     * @throws MailboxException
     */
    public void deleteEverything(MailboxSession mailboxSession) throws MailboxException {

        final HBaseMailboxMapper mapper = (HBaseMailboxMapper) getMapperFactory().getMailboxMapper(mailboxSession);

        mapper.execute(new TransactionalMapper.VoidTransaction() {

            @Override
            public void runVoid() throws MailboxException {
                mapper.deleteAllMemberships();
            }
        });
        mapper.execute(new TransactionalMapper.VoidTransaction() {

            @Override
            public void runVoid() throws MailboxException {
                mapper.deleteAllMailboxes();
            }
        });
    }
View Full Code Here


        return new HBaseMessageMapper(session, uidProvider, modSeqProvider, this.conf);
    }

    @Override
    protected MailboxMapper<UUID> createMailboxMapper(MailboxSession session) throws MailboxException {
        return new HBaseMailboxMapper(this.conf);
    }
View Full Code Here

TOP

Related Classes of org.apache.james.mailbox.hbase.mail.HBaseMailboxMapper

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.