public class MessageSignalImpl extends Object implements com.sun.enterprise.ee.cms.core.MessageSignal
| Constructor and Description |
|---|
MessageSignalImpl(byte[] message,
String targetComponent,
String sender,
String groupName,
long startTime) |
| Modifier and Type | Method and Description |
|---|---|
void |
acquire()
Signal is acquired prior to processing of the signal to protect group resources being acquired from being affected by
a race condition
|
String |
getGroupName()
returns the group to which the member involved in the Signal belonged to
|
Map<Serializable,Serializable> |
getMemberDetails() |
String |
getMemberToken() |
byte[] |
getMessage()
Returns the message(payload) as a byte array.
|
long |
getStartTime() |
String |
getTargetComponent()
Returns the target component in this member to which this message is addressed.
|
void |
release()
Signal is released after processing of the signal to bring the group resources to a state of availability
|
public String getTargetComponent()
getTargetComponent in interface com.sun.enterprise.ee.cms.core.MessageSignalpublic byte[] getMessage()
getMessage in interface com.sun.enterprise.ee.cms.core.MessageSignalpublic void acquire()
throws com.sun.enterprise.ee.cms.core.SignalAcquireException
acquire in interface com.sun.enterprise.ee.cms.core.Signalcom.sun.enterprise.ee.cms.core.SignalAcquireException - Exception when unable to aquire the signalpublic void release()
throws com.sun.enterprise.ee.cms.core.SignalReleaseException
release in interface com.sun.enterprise.ee.cms.core.Signalcom.sun.enterprise.ee.cms.core.SignalReleaseException - Exception when unable to release the signalpublic String getMemberToken()
getMemberToken in interface com.sun.enterprise.ee.cms.core.Signalpublic Map<Serializable,Serializable> getMemberDetails()
getMemberDetails in interface com.sun.enterprise.ee.cms.core.Signalpublic String getGroupName()
getGroupName in interface com.sun.enterprise.ee.cms.core.Signalpublic long getStartTime()
getStartTime in interface com.sun.enterprise.ee.cms.core.SignalCopyright © 2017–2020 Eclipse Foundation. All rights reserved.