org.codehaus.wadi.impl
Class DummyContextualiser
java.lang.Object
org.codehaus.wadi.impl.AbstractContextualiser
org.codehaus.wadi.impl.DummyContextualiser
- All Implemented Interfaces:
- Contextualiser, Lifecycle
- public class DummyContextualiser
- extends AbstractContextualiser
A Contextualiser that does no contextualising
- Version:
- $Revision: 1430 $
- Author:
- Jules Gosnell
Method Summary |
boolean |
contextualise(InvocationContext invocationContext,
String id,
Immoter immoter,
Sync motionLock,
boolean exclusiveOnly)
|
Immoter |
getDemoter(String name,
Motable motable)
Return a Demoter to the first Contextualiser which would be happy to accept this Motable - in other words - would not evict() it. |
Evicter |
getEvicter()
|
int |
getLocalSessionCount()
|
Immoter |
getSharedDemoter()
|
boolean |
isExclusive()
|
void |
load(Emoter emoter,
Immoter immoter)
|
void |
promoteToExclusive(Immoter immoter)
|
void |
setLastAccessedTime(Evictable evictable,
long oldTime,
long newTime)
|
void |
setMaxInactiveInterval(Evictable evictable,
int oldInterval,
int newInterval)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_evicter
protected final Evicter _evicter
_immoter
protected final Immoter _immoter
DummyContextualiser
public DummyContextualiser()
contextualise
public boolean contextualise(InvocationContext invocationContext,
String id,
Immoter immoter,
Sync motionLock,
boolean exclusiveOnly)
throws InvocationException
- Throws:
InvocationException
getEvicter
public Evicter getEvicter()
isExclusive
public boolean isExclusive()
getDemoter
public Immoter getDemoter(String name,
Motable motable)
- Description copied from interface:
Contextualiser
- Return a Demoter to the first Contextualiser 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
getSharedDemoter
public Immoter getSharedDemoter()
promoteToExclusive
public void promoteToExclusive(Immoter immoter)
load
public void load(Emoter emoter,
Immoter immoter)
setLastAccessedTime
public void setLastAccessedTime(Evictable evictable,
long oldTime,
long newTime)
setMaxInactiveInterval
public void setMaxInactiveInterval(Evictable evictable,
int oldInterval,
int newInterval)
getLocalSessionCount
public int getLocalSessionCount()
Copyright © 2004-2006 Core Developers Network Ltd.. All Rights Reserved.