Package com.wowza.wms.sharedobject
Interface ISharedObjectSlot
-
public interface ISharedObjectSlot
ISharedObjectSlot: public interface to SharedObjectSlot class.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AMFData
getData()
Get slot data as AMFData object.int
getLastClientId()
Get client id of client that performaned last operation on slot.int
getLastOperation()
Get last slot (property) operation.String
getName()
Get slot (property) name.int
getSlotVersion()
Get slot versionint
getSoVersion()
Get parent shared object versionvoid
incSlotVersion()
Increment slot version by 1.void
init(String name, AMFData data, int slotVersion)
Initialize shared object slotvoid
setData(byte[] data)
Set slot data as byte[].void
setData(byte[] data, AMFDataContextDeserialize context)
Set slot data as byte[].void
setData(AMFData data)
Set slot data as AMFData object.void
setLastClientId(int lastClientId)
Set client id of client that performaned last operation on slot.void
setLastOperation(int lastOperation)
Set last slot (property) operation.void
setName(String name)
Set slot (property) namevoid
setSlotVersion(int slotVersion)
Set slot versionvoid
setSoVersion(int soVersion)
Set parent shared object version
-
-
-
Method Detail
-
init
void init(String name, AMFData data, int slotVersion)
Initialize shared object slot- Parameters:
name
- slot (property) namedata
- dataslotVersion
- version
-
getData
AMFData getData()
Get slot data as AMFData object.- Returns:
- slot data as AMFData object
-
setData
void setData(byte[] data, AMFDataContextDeserialize context)
Set slot data as byte[]. Data will be deserialized as AMFData object.- Parameters:
data
- data as byte[]context
- deserialization context
-
setData
void setData(byte[] data)
Set slot data as byte[]. Data will be deserialized as AMFData object.- Parameters:
data
- data as byte[]
-
setData
void setData(AMFData data)
Set slot data as AMFData object.- Parameters:
data
- data as AMFData object
-
getName
String getName()
Get slot (property) name.- Returns:
- slot (property) name
-
setName
void setName(String name)
Set slot (property) name- Parameters:
name
- slot (property) name
-
getSlotVersion
int getSlotVersion()
Get slot version- Returns:
- slot version
-
setSlotVersion
void setSlotVersion(int slotVersion)
Set slot version- Parameters:
slotVersion
- slot version
-
incSlotVersion
void incSlotVersion()
Increment slot version by 1.
-
getSoVersion
int getSoVersion()
Get parent shared object version- Returns:
- parent shared object version
-
setSoVersion
void setSoVersion(int soVersion)
Set parent shared object version- Parameters:
soVersion
- parent shared object version
-
getLastOperation
int getLastOperation()
Get last slot (property) operation. See ISharedObject.SHAREDOBJECT_CMD_*.- Returns:
- last slot (property) operation (ISharedObject.SHAREDOBJECT_CMD_*)
-
setLastOperation
void setLastOperation(int lastOperation)
Set last slot (property) operation. See ISharedObject.SHAREDOBJECT_CMD_*.- Parameters:
lastOperation
- last slot (property) operation (ISharedObject.SHAREDOBJECT_CMD_*)
-
getLastClientId
int getLastClientId()
Get client id of client that performaned last operation on slot.- Returns:
- client id of client that performaned last operation on slot
-
setLastClientId
void setLastClientId(int lastClientId)
Set client id of client that performaned last operation on slot.- Parameters:
lastClientId
- client id of client that performaned last operation on slot
-
-