public class ServiceAnnouncement
extends java.lang.Object
Purpose: A structured message object to announce a new RCM service instance becoming available
Description: This object is sent over the multicast by a service wanting to join the EclipseLink cluster. It is received by all other services subscribing to the same channel. Receipt of this announcement triggers an exchange protocol between the sending and receiving services to establish communications with all of the other services on the channel.
Constructor and Description |
---|
ServiceAnnouncement(byte[] bytes)
INTERNAL:
Constructor to initialize a new instance when receiving a message
|
ServiceAnnouncement(ServiceId newServiceId)
INTERNAL:
Constructor to initialize a new instance when creating a message
|
Modifier and Type | Method and Description |
---|---|
ServiceId |
getServiceId()
INTERNAL:
Return the id of the service sending this announcement
|
void |
readFromBytes(byte[] bytes)
INTERNAL:
Initialize the instance fields from the serialized bytes.
|
byte[] |
toBytes()
INTERNAL:
Convert the instance attributes to serialized bytes.
|
public ServiceAnnouncement(byte[] bytes)
public ServiceAnnouncement(ServiceId newServiceId)
public void readFromBytes(byte[] bytes)
public byte[] toBytes()
public ServiceId getServiceId()
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference