org.neo.swarm.interceptor.asyncQueue
Class AsyncQueue

java.lang.Object
  extended byorg.neo.swarm.interceptor.asyncQueue.AsyncQueue
All Implemented Interfaces:
Aspect

public class AsyncQueue
extends java.lang.Object
implements Aspect

A local or remote async based interceptor that decouples invocations. Implementations of this queue can be used to report health stats to the container as well as alert JMX properties when the queue reaches alert state.

Author:
navery

Constructor Summary
AsyncQueue(int queueSize)
           
 
Method Summary
 void advise(AspectComponent componentInstance)
           
 MethodInterceptor getInterceptor()
           
 void replaceInterceptor(MethodInterceptor interceptor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsyncQueue

public AsyncQueue(int queueSize)
Method Detail

advise

public void advise(AspectComponent componentInstance)
Specified by:
advise in interface Aspect

getInterceptor

public MethodInterceptor getInterceptor()
Specified by:
getInterceptor in interface Aspect

replaceInterceptor

public void replaceInterceptor(MethodInterceptor interceptor)
Specified by:
replaceInterceptor in interface Aspect


Copyright © 2001-2004 SWARM-ONE -First Generation (S)calable(W)ide(AR)ea(M)esh. All Rights Reserved.