public final class EventFlags extends Object
A Resource Adaptor specifies event flags when submitting an event using the
SleeEndpoint.fireEvent(ActivityHandle, FireableEventType, Object, javax.slee.Address, ReceivableService, int)
,
SleeEndpoint.fireEventTransacted(ActivityHandle, FireableEventType, Object, javax.slee.Address, ReceivableService, int)
methods.
Modifier and Type | Field and Description |
---|---|
static int |
NO_FLAGS
Requests no additional behavior from the SLEE.
|
static int |
REQUEST_EVENT_UNREFERENCED_CALLBACK
Request an
ResourceAdaptor.eventUnreferenced(javax.slee.resource.ActivityHandle, javax.slee.resource.FireableEventType, java.lang.Object, javax.slee.Address, javax.slee.resource.ReceivableService, int) callback from the SLEE when
the SLEE no longer holds a reference to the event. |
static int |
REQUEST_PROCESSING_FAILED_CALLBACK
Request an
ResourceAdaptor.eventProcessingFailed(javax.slee.resource.ActivityHandle, javax.slee.resource.FireableEventType, java.lang.Object, javax.slee.Address, javax.slee.resource.ReceivableService, int, javax.slee.resource.FailureReason) callback from the SLEE
if the SLEE is unable to successfully process the event. |
static int |
REQUEST_PROCESSING_SUCCESSFUL_CALLBACK
Request an
ResourceAdaptor.eventProcessingSuccessful(javax.slee.resource.ActivityHandle, javax.slee.resource.FireableEventType, java.lang.Object, javax.slee.Address, javax.slee.resource.ReceivableService, int) callback from the
SLEE if the event is successfully processed. |
static int |
SBB_PROCESSED_EVENT
This flag is set by the SLEE if an SBB event handler method was invoked for the
event.
|
static int |
SLEE_MAY_MARSHAL
Indicate to the SLEE that the SLEE may marshal and unmarshal the event if required
to do so.
|
static int |
STANDARD_FLAGS_MASK
This bit-mask specifies the event flag bits reserved for current and future use
by the JAIN SLEE specification.
|
static int |
VENDOR_FLAGS_MASK
This mask specifies the event flag bits reserved for SLEE vendors to represent
optional proprietary behavior.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
hasFlags(int flags,
int flagsToTestFor)
Test an integer for the presence of a flag.
|
static boolean |
hasNoFlags(int flags)
Determine whether the specified event flags request no special behavior.
|
static boolean |
hasRequestEventReferenceReleasedCallback(int flags)
Test for the presence of the
REQUEST_EVENT_UNREFERENCED_CALLBACK flag. |
static boolean |
hasRequestProcessingFailedCallback(int flags)
Test for the presence of the
REQUEST_PROCESSING_FAILED_CALLBACK flag. |
static boolean |
hasRequestProcessingSuccessfulCallback(int flags)
Test for the presence of the
REQUEST_PROCESSING_SUCCESSFUL_CALLBACK flag. |
static boolean |
hasSbbProcessedEvent(int flags)
Test for the presence of the
SBB_PROCESSED_EVENT flag. |
static boolean |
hasSleeMayMarshal(int flags)
Test for the presence of the
SLEE_MAY_MARSHAL flag. |
static boolean |
hasStandardFlags(int flags)
Determine whether the specified flags request any of the SLEE specification
defined special behavior.
|
static boolean |
hasVendorFlags(int flags)
Determine whether the specified flags request any vendor specific behavior.
|
static int |
setRequestEventReferenceReleasedCallback(int currentFlags)
Add the
REQUEST_EVENT_UNREFERENCED_CALLBACK flag to an existing integer
representation of event flags. |
static int |
setRequestProcessingFailedCallback(int currentFlags)
Add the
REQUEST_PROCESSING_FAILED_CALLBACK flag to an existing integer
representation of event flags. |
static int |
setRequestProcessingSuccessfulCallback(int currentFlags)
Add the
REQUEST_PROCESSING_SUCCESSFUL_CALLBACK flag to an existing
integer representation of event flags. |
static int |
setSbbProcessedEvent(int currentFlags)
Add the
SBB_PROCESSED_EVENT flag to an existing integer representation
of event flags. |
static int |
setSleeMayMarshal(int currentFlags)
Add the
SLEE_MAY_MARSHAL flag to an existing integer representation of
event flags. |
static String |
toString(int flags)
Get a string representation of an integer containing event flags.
|
public static final int NO_FLAGS
public static final int SLEE_MAY_MARSHAL
Marshaler
interface that is capable of marshaling
events.public static final int REQUEST_PROCESSING_SUCCESSFUL_CALLBACK
ResourceAdaptor.eventProcessingSuccessful(javax.slee.resource.ActivityHandle, javax.slee.resource.FireableEventType, java.lang.Object, javax.slee.Address, javax.slee.resource.ReceivableService, int)
callback from the
SLEE if the event is successfully processed.public static final int REQUEST_PROCESSING_FAILED_CALLBACK
ResourceAdaptor.eventProcessingFailed(javax.slee.resource.ActivityHandle, javax.slee.resource.FireableEventType, java.lang.Object, javax.slee.Address, javax.slee.resource.ReceivableService, int, javax.slee.resource.FailureReason)
callback from the SLEE
if the SLEE is unable to successfully process the event.public static final int REQUEST_EVENT_UNREFERENCED_CALLBACK
ResourceAdaptor.eventUnreferenced(javax.slee.resource.ActivityHandle, javax.slee.resource.FireableEventType, java.lang.Object, javax.slee.Address, javax.slee.resource.ReceivableService, int)
callback from the SLEE when
the SLEE no longer holds a reference to the event.public static final int SBB_PROCESSED_EVENT
public static final int STANDARD_FLAGS_MASK
public static final int VENDOR_FLAGS_MASK
public static boolean hasNoFlags(int flags)
flags
- integer representation of a set of event flags to test.true
if the flags define no special behavior,
false
otherwise.public static boolean hasStandardFlags(int flags)
flags
- integer representation of a set of event flags to test.true
if the flags define any SLEE defined special behavior,
false
otherwise.public static boolean hasVendorFlags(int flags)
flags
- integer representation of a set of event flags to test.true
if the flags define any vendor defined special behavior,
false
otherwise.public static boolean hasFlags(int flags, int flagsToTestFor)
flags
- integer representation of a set of event flags to test.flagsToTestFor
- the flags to test for. This may include flags defined
by this class and/or vendor specific flags.true
if the specified flags are set, false
otherwise.public static boolean hasSleeMayMarshal(int flags)
SLEE_MAY_MARSHAL
flag.flags
- integer representation of a set of event flags to test.true
if the flags include the SLEE_MAY_MARSHAL
flag, false
otherwise.public static boolean hasRequestProcessingSuccessfulCallback(int flags)
REQUEST_PROCESSING_SUCCESSFUL_CALLBACK
flag.flags
- integer representation of a set of event flags to test.true
if the flags include the
REQUEST_PROCESSING_SUCCESSFUL_CALLBACK
flag, false
otherwise.public static boolean hasRequestProcessingFailedCallback(int flags)
REQUEST_PROCESSING_FAILED_CALLBACK
flag.flags
- integer representation of a set of event flags to test.true
if the flags include the
REQUEST_PROCESSING_FAILED_CALLBACK
flag, false
otherwise.public static boolean hasRequestEventReferenceReleasedCallback(int flags)
REQUEST_EVENT_UNREFERENCED_CALLBACK
flag.flags
- integer representation of a set of event flags to test.true
if the flags include the
REQUEST_EVENT_UNREFERENCED_CALLBACK
flag, false
otherwise.public static boolean hasSbbProcessedEvent(int flags)
SBB_PROCESSED_EVENT
flag.flags
- integer representation of a set of event flags to test.true
if the flags include the SBB_PROCESSED_EVENT
flag, false
otherwise.public static int setSleeMayMarshal(int currentFlags)
SLEE_MAY_MARSHAL
flag to an existing integer representation of
event flags. The new flag is bitwise OR'ed onto the existing flags. This method
has no effect if the SLEE_MAY_MARSHAL
flag is already present in the
existing flags.currentFlags
- the existing integer representation of event flags.SLEE_MAY_MARSHAL
flag set.public static int setRequestProcessingSuccessfulCallback(int currentFlags)
REQUEST_PROCESSING_SUCCESSFUL_CALLBACK
flag to an existing
integer representation of event flags. The new flag is bitwise OR'ed onto the
existing flags. This method has no effect if the REQUEST_PROCESSING_SUCCESSFUL_CALLBACK
flag is already present in the existing flags.currentFlags
- the existing integer representation of event flags.REQUEST_PROCESSING_SUCCESSFUL_CALLBACK
flag set.public static int setRequestProcessingFailedCallback(int currentFlags)
REQUEST_PROCESSING_FAILED_CALLBACK
flag to an existing integer
representation of event flags. The new flag is bitwise OR'ed onto the existing flags.
This method has no effect if the REQUEST_PROCESSING_FAILED_CALLBACK
flag
is already present in the existing flags.currentFlags
- the existing integer representation of event flags.REQUEST_PROCESSING_FAILED_CALLBACK
flag set.public static int setRequestEventReferenceReleasedCallback(int currentFlags)
REQUEST_EVENT_UNREFERENCED_CALLBACK
flag to an existing integer
representation of event flags. The new flag is bitwise OR'ed onto the existing
flags. This method has no effect if the REQUEST_EVENT_UNREFERENCED_CALLBACK
flag is already present in the existing flags.currentFlags
- the existing integer representation of event flags.REQUEST_EVENT_UNREFERENCED_CALLBACK
flag set.public static int setSbbProcessedEvent(int currentFlags)
SBB_PROCESSED_EVENT
flag to an existing integer representation
of event flags. The new flag is bitwise OR'ed onto the existing flags.
This method has no effect if the SBB_PROCESSED_EVENT
flag is already
present in the existing flags.
Note that this method should not be invoked by Resource Adaptors. This flag is used by the SLEE to report SBB event processing activity in the SLEE.
currentFlags
- the existing integer representation of event flags.SBB_PROCESSED_EVENT
flag set.public static String toString(int flags)
flags
- integer representation of a set of event flags.