org.omg.PortableInterceptor
Interface CurrentOperations

All Superinterfaces:
CurrentOperations
All Known Subinterfaces:
Current

public interface CurrentOperations
extends CurrentOperations

Defines the operations, applicable to the portable interceptor Current. Portable Interceptors Current (also known as PICurrent) is a slot table. Each slot has an integer identifier, can hold a CORBA Any and is used by some service to transfer data between thread and request contexts. 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.


Method Summary
 Any get_slot(int slot_id)
          Get data from the slot with the given slot_id.
 void set_slot(int slot_id, Any data)
          Sets data for the slot with the given slot_id.
 

Method Detail

get_slot

Any get_slot(int slot_id)
             throws InvalidSlot,
                    BAD_INV_ORDER
Get data from the slot with the given slot_id.

Parameters:
slot_id - the slot slot_id.
Returns:
the Any that was stored in the slot. If the given slot has not been set, the returned Any contains a type code with a TCKind value of tk_null and has no value.
Throws:
InvalidSlot - for the unknown slot.
BAD_INV_ORDER - minor 10 if called from the ORBInitializer methods.

set_slot

void set_slot(int slot_id,
              Any data)
              throws InvalidSlot,
                     BAD_INV_ORDER
Sets data for the slot with the given slot_id.

Parameters:
slot_id - the slot slot_id.
data - the Any that will be stored into the slot.
Throws:
InvalidSlot - for the unknown slot.
BAD_INV_ORDER - minor 10 if called from the ORBInitializer methods.