org.ow2.jonas.discovery.jgroups.utils
Class Data
java.lang.Object
org.ow2.jonas.discovery.jgroups.utils.Data
- All Implemented Interfaces:
- Serializable
public class Data
- extends Object
- implements Serializable
- Author:
- eyindanga
- See Also:
- Serialized Form
Field Summary |
static int |
DISC_EVENT
Constant for DiscEvent objects type. |
static int |
DISC_GREETING
Constant for DiscGreeting objects type. |
static int |
DISC_MESSAGE
Constant for DiscMessage objects type. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DISC_MESSAGE
public static int DISC_MESSAGE
- Constant for DiscMessage objects type.
DISC_EVENT
public static int DISC_EVENT
- Constant for DiscEvent objects type.
DISC_GREETING
public static int DISC_GREETING
- Constant for DiscGreeting objects type.
Data
public Data(int type,
Serializable payload)
getPayload
public Serializable getPayload()
- Returns:
- the payload
setPayload
public void setPayload(Serializable payload)
- Parameters:
payload
- the payload to set
getType
public int getType()
- Returns:
- the type
setType
public void setType(int type)
- Parameters:
type
- the type to set
Copyright © 2010 OW2 Consortium. All Rights Reserved.