Examples of ListContainer


Examples of com.hazelcast.collection.list.ListContainer

        if (partitionOwner == null) {
            return false;
        }
        if (thisAddress.equals(partitionOwner)) {
            ListService listService = nei.getService(ListService.SERVICE_NAME);
            ListContainer listContainer = listService.getOrCreateContainer(listName, false);
            List<CollectionItem> items = new ArrayList<CollectionItem>(listContainer.getCollection());
            iterator = items.iterator();
        }
        return true;
    }
View Full Code Here

Examples of flexjson.model.ListContainer

    }

    @Test
    public void testSimpleShallowWithListInObject() {
        JSONSerializer serializer = new JSONSerializer();
        ListContainer wrapper = new ListContainer();
        wrapper.setName("Joe Blow");
        wrapper.setPeople(people);
        String peopleJson = serializer.serialize(wrapper);
        logger.info(peopleJson);
        assertFalse(peopleJson.contains("["));
    }
View Full Code Here

Examples of jodd.json.model.ListContainer

  }

  @Test
  public void testSimpleShallowWithListInObject() {
    JsonSerializer serializer = new JsonSerializer();
    ListContainer wrapper = new ListContainer();
    wrapper.setName("Joe Blow");
    wrapper.setPeople(people);
    String peopleJson = serializer.serialize(wrapper);
    assertFalse(peopleJson.contains("["));
  }
View Full Code Here

Examples of org.apache.activemq.kaha.ListContainer

            MapContainer container = getMapContainer(id.getKey(), id.getDataContainerName());
            container.clear();
        }
        for (Iterator i = listsContainer.getKeys().iterator(); i.hasNext();) {
            ContainerId id = (ContainerId)i.next();
            ListContainer container = getListContainer(id.getKey(), id.getDataContainerName());
            container.clear();
        }

    }
View Full Code Here

Examples of org.apache.activemq.kaha.ListContainer

            MapContainer container = getMapContainer(id.getKey(), id.getDataContainerName());
            container.clear();
        }
        for (Iterator i = listsContainer.getKeys().iterator(); i.hasNext();) {
            ContainerId id = (ContainerId)i.next();
            ListContainer container = getListContainer(id.getKey(), id.getDataContainerName());
            container.clear();
        }

    }
View Full Code Here

Examples of org.apache.activemq.kaha.ListContainer

            MapContainer container = getMapContainer(id.getKey(), id.getDataContainerName());
            container.clear();
        }
        for (Iterator i = listsContainer.getKeys().iterator(); i.hasNext();) {
            ContainerId id = (ContainerId)i.next();
            ListContainer container = getListContainer(id.getKey(), id.getDataContainerName());
            container.clear();
        }

    }
View Full Code Here

Examples of org.apache.activemq.kaha.ListContainer

    public synchronized TopicMessageStore createTopicMessageStore(ActiveMQTopic destination) throws IOException{
        TopicMessageStore rc=(TopicMessageStore)topics.get(destination);
        if(rc==null){
            Store store=getStore();
            ListContainer messageContainer=getListContainer(destination,"topic-data");
            MapContainer subsContainer=getMapContainer(destination.toString()+"-Subscriptions","topic-subs");
            ListContainer ackContainer=store.getListContainer(destination.toString(),"topic-acks");
            ackContainer.setMarshaller(new TopicSubAckMarshaller());
            rc=new KahaTopicMessageStore(store,messageContainer,ackContainer,subsContainer,destination);
            messageStores.put(destination,rc);
            if(transactionStore!=null){
                rc=transactionStore.proxy(rc);
            }
View Full Code Here

Examples of org.apache.activemq.kaha.ListContainer

        return container;
    }
   
    protected ListContainer getListContainer(Object id,String containerName) throws IOException{
        Store store=getStore();
        ListContainer container=store.getListContainer(id,containerName);
        if(useExternalMessageReferences){
            container.setMarshaller(new StringMarshaller());
        }else{
            container.setMarshaller(new CommandMarshaller(wireFormat));
        }
        container.load();
        return container;
    }
View Full Code Here

Examples of org.apache.activemq.kaha.ListContainer

    }

    public void recoverSubscription(String clientId,String subscriptionName,final MessageRecoveryListener listener)
            throws Exception{
        String key=getSubscriptionKey(clientId,subscriptionName);
        ListContainer list=(ListContainer)subscriberAcks.get(key);
        if(list!=null){
            for(Iterator i=list.iterator();i.hasNext();){
                Object msg=messageContainer.get(i.next());
                if(msg!=null){
                    if(msg.getClass()==String.class){
                        listener.recoverMessageReference((String)msg);
                    }else{
View Full Code Here

Examples of org.apache.activemq.kaha.ListContainer

    }

    public void recoverNextMessages(String clientId,String subscriptionName,MessageId lastMessageId,int maxReturned,
            MessageRecoveryListener listener) throws Exception{
        String key=getSubscriptionKey(clientId,subscriptionName);
        ListContainer list=(ListContainer)subscriberAcks.get(key);
        if(list!=null){
            boolean startFound=false;
            int count=0;
            for(Iterator i=list.iterator();i.hasNext()&&count<maxReturned;){
                Object msg=messageContainer.get(i.next());
                if(msg!=null){
                    if(msg.getClass()==String.class){
                        String ref=msg.toString();
                        if(startFound||lastMessageId==null){
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.