@Override public ManagedConversation getConversation(String id) { return getConversationMap().get(id); }
@Override public ManagedConversation getConversation(String id) { return getConversationMap().get(id); }
@Override public ManagedConversation getConversation(String id) { return getConversationMap().get(id); }
@Override public ManagedConversation getConversation(String id) { return getConversationMap().get(id); }
@Override public Collection<ManagedConversation> getConversations() { // Don't return the map view to avoid concurrency issues Map<String, ManagedConversation> conversations = getConversationMap(); synchronized (conversations) { return new HashSet<ManagedConversation>(conversations.values()); } }
@Override public ManagedConversation getConversation(String id) { return getConversationMap().get(id); }
@Override public Collection<ManagedConversation> getConversations() { // Don't return the map view to avoid concurrency issues Map<String, ManagedConversation> conversations = getConversationMap(); synchronized (conversations) { return new HashSet<ManagedConversation>(conversations.values()); } }
@Override public Collection<ManagedConversation> getConversations() { // Don't return the map view to avoid concurrency issues Map<String, ManagedConversation> conversations = getConversationMap(); synchronized (conversations) { return new HashSet<ManagedConversation>(conversations.values()); } }
@Override public Collection<ManagedConversation> getConversations() { // Don't return the map view to avoid concurrency issues Map<String, ManagedConversation> conversations = getConversationMap(); synchronized (conversations) { return new HashSet<ManagedConversation>(conversations.values()); } }
@Override public Collection<ManagedConversation> getConversations() { // Don't return the map view to avoid concurrency issues Map<String, ManagedConversation> conversations = getConversationMap(); synchronized (conversations) { return new HashSet<ManagedConversation>(conversations.values()); } }
public void conversationPromotedToLongRunning(ConversationImpl conversation) { getConversationMap().put(conversation.getId(), conversation); }
public void conversationPromotedToLongRunning(ConversationImpl conversation) { getConversationMap().put(conversation.getId(), conversation); }
public void conversationPromotedToLongRunning(ConversationImpl conversation) { getConversationMap().put(conversation.getId(), conversation); }
public void conversationPromotedToLongRunning(ConversationImpl conversation) { getConversationMap().put(conversation.getId(), conversation); }
public void conversationPromotedToLongRunning(ConversationImpl conversation) { getConversationMap().put(conversation.getId(), conversation); }
private void cleanUpConversationMap() { Map<String, ManagedConversation> conversations = getConversationMap(); synchronized (conversations) { Iterator<Entry<String, ManagedConversation>> entryIterator = conversations.entrySet().iterator(); S session = getSessionFromRequest(getRequest(), false); while (entryIterator.hasNext()) { Entry<String, ManagedConversation> entry = entryIterator.next(); if (entry.getValue().isTransient()) { destroyConversation(session, entry.getKey()); entryIterator.remove(); } } } }
private void cleanUpConversationMap() { Map<String, ManagedConversation> conversations = getConversationMap(); synchronized (conversations) { Iterator<Entry<String, ManagedConversation>> entryIterator = conversations.entrySet().iterator(); S session = getSessionFromRequest(getRequest(), false); while (entryIterator.hasNext()) { Entry<String, ManagedConversation> entry = entryIterator.next(); if (entry.getValue().isTransient()) { destroyConversation(session, entry.getKey()); entryIterator.remove(); } } } }
private void cleanUpConversationMap() { Map<String, ManagedConversation> conversations = getConversationMap(); synchronized (conversations) { Iterator<Entry<String, ManagedConversation>> entryIterator = conversations.entrySet().iterator(); S session = getSessionFromRequest(getRequest(), false); while (entryIterator.hasNext()) { Entry<String, ManagedConversation> entry = entryIterator.next(); if (entry.getValue().isTransient()) { destroyConversation(session, entry.getKey()); entryIterator.remove(); } } } }
private void cleanUpConversationMap() { Map<String, ManagedConversation> conversations = getConversationMap(); synchronized (conversations) { Iterator<Entry<String, ManagedConversation>> entryIterator = conversations.entrySet().iterator(); S session = getSessionFromRequest(getRequest(), false); while (entryIterator.hasNext()) { Entry<String, ManagedConversation> entry = entryIterator.next(); if (entry.getValue().isTransient()) { destroyConversation(session, entry.getKey()); entryIterator.remove(); } } } }
private void cleanUpConversationMap() { Map<String, ManagedConversation> conversations = getConversationMap(); synchronized (conversations) { Iterator<Entry<String, ManagedConversation>> entryIterator = conversations.entrySet().iterator(); S session = getSessionFromRequest(getRequest(), false); while (entryIterator.hasNext()) { Entry<String, ManagedConversation> entry = entryIterator.next(); if (entry.getValue().isTransient()) { destroyConversation(session, entry.getKey()); entryIterator.remove(); } } } }