JProfiler API

com.jprofiler.api.platform.descriptors
Interface PayloadDescriptor

All Superinterfaces:
Descriptor

public interface PayloadDescriptor
extends Descriptor

Descriptor for a payload.

The description property of the super-interface contains the payload description, the type property of this derived interface contains the payload id.

See Also:
Payload

Method Summary
 int getType()
          Returns the payload id.
 
Methods inherited from interface com.jprofiler.api.platform.descriptors.Descriptor
getDescription
 

Method Detail

getType

int getType()
Returns the payload id. If the payload id is negative, it is one of the PAYLOAD_* constants in Payload, otherwise it is the payload of a registered Interceptor.

You can map the payload id of an interceptor to a description with InterceptorsInfo.getIdToDescription().

Returns:
the payload id

JProfiler API