org.codehaus.wadi.core.contextualiser
Class SerialContextualiser

java.lang.Object
  extended by org.codehaus.wadi.core.contextualiser.AbstractChainedContextualiser
      extended by org.codehaus.wadi.core.contextualiser.AbstractDelegatingContextualiser
          extended by org.codehaus.wadi.core.contextualiser.SerialContextualiser
All Implemented Interfaces:
Contextualiser, Lifecycle

public class SerialContextualiser
extends AbstractDelegatingContextualiser

Ensure that any Contextualisations that pass through are serialised according to the strategy imposed by our Collapser.

Version:
$Revision: 2415 $
Author:
Jules Gosnell

Field Summary
 
Fields inherited from class org.codehaus.wadi.core.contextualiser.AbstractChainedContextualiser
next
 
Constructor Summary
SerialContextualiser(Contextualiser next, Collapser collapser, ConcurrentMotableMap map)
           
 
Method Summary
 boolean contextualise(Invocation invocation, java.lang.String key, Immoter immoter, boolean exclusiveOnly)
          Contextualise the given Invocation.
 
Methods inherited from class org.codehaus.wadi.core.contextualiser.AbstractDelegatingContextualiser
getDemoter, getSessionNames, getSharedDemoter, promoteToExclusive
 
Methods inherited from class org.codehaus.wadi.core.contextualiser.AbstractChainedContextualiser
doFindRelevantSessionNames, doStart, doStop, findRelevantSessionNames, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerialContextualiser

public SerialContextualiser(Contextualiser next,
                            Collapser collapser,
                            ConcurrentMotableMap map)
Method Detail

contextualise

public boolean contextualise(Invocation invocation,
                             java.lang.String key,
                             Immoter immoter,
                             boolean exclusiveOnly)
                      throws InvocationException
Description copied from interface: Contextualiser
Contextualise the given Invocation.

Parameters:
invocation - the Invocation
key - the Session key
immoter - an Immoter that can be used to promote the Session when found
exclusiveOnly - whether we should only look in exclusive stores, or descend to shared ones as well
Returns:
whether or not the Invocation was contextualised.
Throws:
InvocationException


Copyright © 2011. All Rights Reserved.