Examples of update()


Examples of org.apache.james.mailbox.maildir.MaildirFolder.update()

                        member.setModSeq(modSeq);
                       
                        updatedFlags.add(new UpdatedFlags(member.getUid(), modSeq, originalFlags, newFlags));

                        long uid = member.getUid();
                        folder.update(mailboxSession, uid, newMessageName);
                    } catch (IOException e) {
                        throw new MailboxException("Failure while save Message " + member + " in Mailbox " + mailbox, e);
                    }

                }
View Full Code Here

Examples of org.apache.jcs.auxiliary.AuxiliaryCache.update()

        AuxiliaryCache cache = remoteCacheManager.getCache( regionName );

        // DO WORK
        int numPutsPrior = server.getPutCount();
        ICacheElement element = new CacheElement( regionName, "key", "value" );
        cache.update( element );
        SleepUtil.sleepAtLeast( 50 );

        // VERIFY
        System.out.println( server.getStats() );
        assertEquals( "Wrong number of puts", 1, server.getPutCount() - numPutsPrior );
View Full Code Here

Examples of org.apache.jcs.engine.behavior.ICache.update()

                {
                    try
                    {
                        // need to make sure the group cache understands that the
                        // key is a group attribute on update
                        aux.update( ce );
                        if ( log.isDebugEnabled() )
                        {
                            log.debug( "Updated remote store for "
                                 + ce.getKey() + ce );
                        }
View Full Code Here

Examples of org.apache.jcs.engine.behavior.ICompositeCache.update()

        {
            log.debug( "PUTTING ELEMENT FROM LATERAL" );
        }
        getCacheManager();
        ICompositeCache cache = ( ICompositeCache ) cacheMgr.getCache( cb.getCacheName() );
        cache.update( cb, CacheConstants.REMOTE_INVOKATION );
        //handleRemove(cb.getCacheName(), cb.getKey());
    }


    /** Description of the Method */
 
View Full Code Here

Examples of org.apache.jcs.engine.control.CompositeCache.update()

    IElementAttributes elementAttributes = cache.getElementAttributes().copy();
    newCacheElement.setElementAttributes(elementAttributes);

    try {
      cache.update(newCacheElement);

    } catch (Exception exception) {
      throw new CacheAccessException(exception);
    }
  }
View Full Code Here

Examples of org.apache.jcs.engine.memory.MemoryCacheMockImpl.update()

        ElementAttributes elementAttr = new ElementAttributes();
        elementAttr.addElementEventHandler( handler );
        elementAttr.setIsEternal( false );
        element.setElementAttributes( elementAttr );
        element.getElementAttributes().setMaxLifeSeconds( 1 );
        memory.update( element );

        ICacheElement returnedElement1 = memory.get( key );
        assertNotNull( "We should have received an element", returnedElement1 );

        // set this to 2 seconds ago.
View Full Code Here

Examples of org.apache.jetspeed.om.security.ldap.LDAPGroup.update()

                group.getName() + "' already exists");
        }
        try
        {
            ldapGroup = new LDAPGroup(group.getName(), true);
            ldapGroup.update(true);
        }
        catch(Exception e)
        {
            throw new GroupException("Failed to create group '" +
                group.getName() + "'", e);
View Full Code Here

Examples of org.apache.jetspeed.om.security.ldap.LDAPRole.update()

        }

        try
        {
            ldapRole = new LDAPRole(role.getName(), true);
            ldapRole.update(true);
        }
        catch(Exception e)
        {
            throw new RoleException("Failed to create role '" +
                role.getName() + "'", e);
View Full Code Here

Examples of org.apache.jetspeed.om.security.ldap.LDAPUser.update()

        }

        try
        {
            user.addGroupRole(groupName, roleName);
            user.update(false);

            if (cachingEnable)
            {
                JetspeedSecurityCache.addRole(username, role);
            }
View Full Code Here

Examples of org.apache.kafka.common.utils.Crc32.update()

    /**
     * Compute the checksum of the record from the record contents
     */
    public static long computeChecksum(ByteBuffer buffer, int position, int size) {
        Crc32 crc = new Crc32();
        crc.update(buffer.array(), buffer.arrayOffset() + position, size);
        return crc.getValue();
    }

    /**
     * Compute the checksum of the record from the attributes, key and value payloads
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.