org.instrumentmiddleware.cima.parcel.impl
Class RegisteredParcel

java.lang.Object
  extended by org.instrumentmiddleware.cima.parcel.impl.RegisteredParcel
All Implemented Interfaces:
java.lang.reflect.InvocationHandler, ICIMARegisteredParcel

public class RegisteredParcel
extends java.lang.Object
implements java.lang.reflect.InvocationHandler, ICIMARegisteredParcel

A Counting parcel is a proxy for a Parcel and also implements ICountingParcel. This is to allow a Parcel to keep track of how many (and who) are interested in receiving this parcel. There is also a timeout associated with the parcel so that the system won't keep it for longer than the timeout period.

Author:
andrew

Method Summary
 void addSession(ISession session)
           
static IRegisteredParcel createRegisteredParcel(org.instrumentmiddleware.cima.parcel.ParcelDocument.Parcel p)
          Factory method for obtaining a RegisteredParcel
 org.instrumentmiddleware.cima.parcel.ParcelDocument.Parcel getParcel()
          Grab the underlying parcel - this should probably be removed
 java.util.List<ISession> getRegisteredSessions()
           
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
          see InvocationHandler.invoke()
 void removeSession(ISession session)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getParcel

public org.instrumentmiddleware.cima.parcel.ParcelDocument.Parcel getParcel()
Grab the underlying parcel - this should probably be removed

Returns:

invoke

public java.lang.Object invoke(java.lang.Object proxy,
                               java.lang.reflect.Method method,
                               java.lang.Object[] args)
                        throws java.lang.Throwable
see InvocationHandler.invoke()

Specified by:
invoke in interface java.lang.reflect.InvocationHandler
Throws:
java.lang.Throwable

createRegisteredParcel

public static IRegisteredParcel createRegisteredParcel(org.instrumentmiddleware.cima.parcel.ParcelDocument.Parcel p)
Factory method for obtaining a RegisteredParcel

Parameters:
p -
Returns:

addSession

public void addSession(ISession session)
Specified by:
addSession in interface ICIMARegisteredParcel

removeSession

public void removeSession(ISession session)
Specified by:
removeSession in interface ICIMARegisteredParcel

getRegisteredSessions

public java.util.List<ISession> getRegisteredSessions()
Specified by:
getRegisteredSessions in interface ICIMARegisteredParcel

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2008. All Rights Reserved.