|
VisiBroker for Java |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CurrentOperations
Portable Interceptor Current (also known as PICurrent) is a slot table, the slots of which are used by each service to transfer their context data between their context and the request's or reply's service context. Each service which wishes to use PICurrent reserves a slot or slots at initialization time and uses those slots during the processing of requests and replies.
Before an invocation is made, PICurrent is obtained via a call to
ORB.resolve_initial_references( "PICurrent" )
.From within the interception points,
the data on PICurrent that has moved from the thread scope to the request scope is
available via the get_slot
operation on the RequestInfo
object. A PICurrent can still be
obtained via resolve_initial_references, but that is the interceptor's thread scope PICurrent.
Method Summary | |
---|---|
Any |
get_slot(int id)
This method returns the data, in the form of a CORBA::Any , from the given
slot of the Current that is in the scope of the request. |
void |
set_slot(int id,
Any data)
A service sets data in a slot with set_slot() . |
Method Detail |
---|
void set_slot(int id, Any data) throws InvalidSlot
set_slot()
. The data is in the form of a
CORBA::Any
object.If data already exists in that slot, it is overridden.
If set_slot()
is called on a slot that has not been allocated,InvalidSlot
is
raised.If set_slot()
is called from within an ORB initializer,BAD_INV_ORDER
with a minor code of 14 is raised.
id
- The SlotId
of the slot in which the data will be set.data
- The data, in the form of a CORBA::Any
object, which will be set to the identified slot.
InvalidSlot
- The supplied SlotId is invalidAny get_slot(int id) throws InvalidSlot
CORBA::Any
, from the given
slot of the Current that is in the scope of the request.
If the given slot has not been set, then an CORBA::Any
containing a type code
with a TCKind value of tk_null
is returned.
If the ID does not define an allocated slot,InvalidSlot
is raised.
id
- The SlotId
of the slot from which the data will be returned.
InvalidSlot
- The supplied SlotId is invalid
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |