org.omg.PortableInterceptor

Interface CurrentOperations

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 {@link 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
Anyget_slot(int slot_id)
Get data from the slot with the given slot_id.
voidset_slot(int slot_id, Any data)
Sets data for the slot with the given slot_id.

Method Detail

get_slot

public Any get_slot(int slot_id)
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 {@link ORBInitializer} methods.

set_slot

public void set_slot(int slot_id, Any data)
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 {@link ORBInitializer} methods.