|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.obe.spi.util.ApplicationEventUtil
Provides utility methods for handling application events.
Method Summary | |
static java.util.Date |
handleTimeout(ApplicationEventBroker.TemporalEventSubscription subscription,
java.util.Date scheduledExecutionTime,
ServiceManager svcMgr)
Handles the timeout for a temporal event subscription. |
static java.lang.Object[] |
toStrings(java.lang.Object[] array)
Converts the elements of an array to strings. |
static void |
validateSubscription(java.lang.String eventType,
java.util.Date effective,
java.util.Date expiry,
int count,
Duration interval,
java.lang.String[] correlationKeys)
Validates the parameters for a temporal event subscription. |
static void |
validateSubscription(java.lang.String eventType,
java.util.Date effective,
java.util.Date expiry,
int count,
java.lang.String[] correlationKeys)
Validates the parameters for an application event subscription. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static java.util.Date handleTimeout(ApplicationEventBroker.TemporalEventSubscription subscription, java.util.Date scheduledExecutionTime, ServiceManager svcMgr)
subscription
- The temporal event subscription.scheduledExecutionTime
- The time at which the timeout was scheduled
to occur (not necessarily the time at which it actually occurred).svcMgr
- The service manager to use.
null
.public static void validateSubscription(java.lang.String eventType, java.util.Date effective, java.util.Date expiry, int count, java.lang.String[] correlationKeys)
eventType
- effective
- expiry
- count
- correlationKeys
-
java.lang.IllegalArgumentException
- if any of the parameter values are
incorrect.public static void validateSubscription(java.lang.String eventType, java.util.Date effective, java.util.Date expiry, int count, Duration interval, java.lang.String[] correlationKeys)
eventType
- effective
- expiry
- count
- interval
- correlationKeys
-
java.lang.IllegalArgumentException
- if any of the parameter values are
incorrect.public static java.lang.Object[] toStrings(java.lang.Object[] array)
array
- An array of objects.
array
, with all elements replaced by the
result of calling toString()
on each.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |