org.codehaus.wadi.core.contextualiser
Class AbstractSharedContextualiser
java.lang.Object
org.codehaus.wadi.core.contextualiser.AbstractChainedContextualiser
org.codehaus.wadi.core.contextualiser.AbstractMotingContextualiser
org.codehaus.wadi.core.contextualiser.AbstractSharedContextualiser
- All Implemented Interfaces:
- Contextualiser, Lifecycle
- Direct Known Subclasses:
- ClusterContextualiser, ReplicaAwareContextualiser, SharedStoreContextualiser
public abstract class AbstractSharedContextualiser
- extends AbstractMotingContextualiser
- Version:
- $Revision: 2317 $
- Author:
- Jules Gosnell
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractSharedContextualiser
public AbstractSharedContextualiser(Contextualiser next)
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.
- Specified by:
contextualise
in interface Contextualiser
- Overrides:
contextualise
in class AbstractMotingContextualiser
- Parameters:
invocation
- the Invocationkey
- the Session keyimmoter
- an Immoter that can be used to promote the Session when foundexclusiveOnly
- 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
promoteToExclusive
public void promoteToExclusive(Immoter immoter)
- Description copied from interface:
Contextualiser
- Pass this Immoter up to the first ExclusiveContextualiser above us, where...
- Parameters:
immoter
- the Immoter
getSharedDemoter
public Immoter getSharedDemoter()
- Description copied from interface:
Contextualiser
- Return an Immoter to the first SharedContextualiser below us.
- Returns:
- the Immoter
getDemoter
public Immoter getDemoter(java.lang.String name,
Motable motable)
- Description copied from interface:
Contextualiser
- Return an immoter to the first Contextualiser below us, which would be happy to accept this Motable -
in other words - would not evict() it.
- Parameters:
name
- - uid of the Motablemotable
- - the Motable in question
- Returns:
- - a Demoter - a delegate capable of arranging immotion into the correct Contextualiser
getSessionNames
public java.util.Set getSessionNames()
load
protected void load(Emoter emoter,
Immoter immoter)
Copyright © 2010. All Rights Reserved.